good_job 3.30.0 → 3.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/app/controllers/good_job/performances_controller.rb +23 -0
- data/app/filters/good_job/base_filter.rb +1 -1
- data/app/helpers/good_job/application_helper.rb +1 -0
- data/app/models/concerns/good_job/error_events.rb +2 -2
- data/app/models/good_job/base_execution.rb +594 -2
- data/app/models/good_job/discrete_execution.rb +7 -2
- data/app/models/good_job/execution.rb +2 -604
- data/app/models/good_job/job.rb +1 -1
- data/app/views/good_job/performances/show.html.erb +50 -0
- data/app/views/good_job/shared/_navbar.erb +5 -0
- data/config/locales/de.yml +11 -0
- data/config/locales/en.yml +11 -0
- data/config/locales/es.yml +11 -0
- data/config/locales/fr.yml +11 -0
- data/config/locales/it.yml +11 -0
- data/config/locales/ja.yml +11 -0
- data/config/locales/ko.yml +11 -0
- data/config/locales/nl.yml +11 -0
- data/config/locales/pt-BR.yml +11 -0
- data/config/locales/ru.yml +11 -0
- data/config/locales/tr.yml +11 -0
- data/config/locales/uk.yml +11 -0
- data/config/routes.rb +2 -0
- data/lib/generators/good_job/templates/update/migrations/13_create_good_job_process_lock_ids.rb.erb +1 -0
- data/lib/generators/good_job/templates/update/migrations/14_create_good_job_process_lock_indexes.rb.erb +1 -0
- data/lib/good_job/version.rb +1 -1
- data/lib/good_job.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5ca44ad0fbf6d55478287f58fb49c9295ebcbbb5875ec8c3c2e94859dec23393
|
|
4
|
+
data.tar.gz: ded000fbd60a45e9028a97bda6f1dc0240310a7b9281708d15543331a8a19706
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4d09ea0dcb8801f3ca577b349e9f671bdf70c4df38ace8b96e9b5bda8f22bc2bc4791a261c4816e2beca82aa17f188c9521f89be4460f4097d5e8a03a4f2c281
|
|
7
|
+
data.tar.gz: 73ab002472752c47682c508b4828dfd359e9aebebc997b76f69c91f6cf5dd0ab12a4bc171fbc6f3d967e17b2a4b26a52f6afe311d43dbc90331c565a79443e25
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [v3.30.1](https://github.com/bensheldon/good_job/tree/v3.30.1) (2024-07-06)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/bensheldon/good_job/compare/v3.30.0...v3.30.1)
|
|
6
|
+
|
|
7
|
+
**Fixed bugs:**
|
|
8
|
+
|
|
9
|
+
- Fix Performance table formatting, change url from `performances` to singular `performance` [\#1393](https://github.com/bensheldon/good_job/pull/1393) ([bensheldon](https://github.com/bensheldon))
|
|
10
|
+
- Add a version check for Rails whether to use pg interval or calculate float [\#1389](https://github.com/bensheldon/good_job/pull/1389) ([bensheldon](https://github.com/bensheldon))
|
|
11
|
+
|
|
12
|
+
**Merged pull requests:**
|
|
13
|
+
|
|
14
|
+
- Add missing newline after frozen string literal for migrations [\#1392](https://github.com/bensheldon/good_job/pull/1392) ([Earlopain](https://github.com/Earlopain))
|
|
15
|
+
- Temporarily remove JRuby builds [\#1391](https://github.com/bensheldon/good_job/pull/1391) ([bensheldon](https://github.com/bensheldon))
|
|
16
|
+
- Add initial Performance panel to dashboard [\#1388](https://github.com/bensheldon/good_job/pull/1388) ([bensheldon](https://github.com/bensheldon))
|
|
17
|
+
- Move job execution logic from Execution to BaseExecution to simplify v4 changes [\#1357](https://github.com/bensheldon/good_job/pull/1357) ([bensheldon](https://github.com/bensheldon))
|
|
18
|
+
|
|
3
19
|
## [v3.30.0](https://github.com/bensheldon/good_job/tree/v3.30.0) (2024-07-05)
|
|
4
20
|
|
|
5
21
|
[Full Changelog](https://github.com/bensheldon/good_job/compare/v3.29.5...v3.30.0)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module GoodJob
|
|
4
|
+
class PerformancesController < ApplicationController
|
|
5
|
+
def show
|
|
6
|
+
if GoodJob::DiscreteExecution.duration_interval_migrated?
|
|
7
|
+
@performances = GoodJob::DiscreteExecution
|
|
8
|
+
.where.not(job_class: nil)
|
|
9
|
+
.group(:job_class)
|
|
10
|
+
.select("
|
|
11
|
+
job_class,
|
|
12
|
+
COUNT(*) AS executions_count,
|
|
13
|
+
AVG(duration) AS avg_duration,
|
|
14
|
+
MIN(duration) AS min_duration,
|
|
15
|
+
MAX(duration) AS max_duration
|
|
16
|
+
")
|
|
17
|
+
.order("job_class")
|
|
18
|
+
else
|
|
19
|
+
@needs_upgrade = true
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -27,7 +27,7 @@ module GoodJob
|
|
|
27
27
|
def error_event
|
|
28
28
|
return unless self.class.columns_hash['error_event']
|
|
29
29
|
|
|
30
|
-
enum =
|
|
30
|
+
enum = read_attribute(:error_event)
|
|
31
31
|
return unless enum
|
|
32
32
|
|
|
33
33
|
ERROR_EVENT_ENUMS.key(enum)
|
|
@@ -39,7 +39,7 @@ module GoodJob
|
|
|
39
39
|
enum = ERROR_EVENT_ENUMS[event]
|
|
40
40
|
raise(ArgumentError, "Invalid error_event: #{event}") if event && !enum
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
write_attribute(:error_event, enum)
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
end
|