good_job 4.24.1 → 4.24.2
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 +32 -0
- data/README.md +3 -1
- data/app/frontend/good_job/modules/theme_controller.js +42 -28
- data/app/models/good_job/batch.rb +1 -0
- data/app/models/good_job/i18n_config.rb +10 -0
- data/app/models/good_job/job.rb +37 -31
- data/app/views/good_job/shared/_navbar.erb +10 -24
- data/app/views/layouts/good_job/application.html.erb +1 -1
- data/config/brakeman.ignore +3 -3
- data/config/locales/az.yml +2 -4
- data/config/locales/de.yml +2 -4
- data/config/locales/en.yml +2 -4
- data/config/locales/es.yml +2 -4
- data/config/locales/fr.yml +4 -6
- data/config/locales/it.yml +2 -4
- data/config/locales/ja.yml +2 -4
- data/config/locales/ko.yml +2 -4
- data/config/locales/nl.yml +2 -4
- data/config/locales/pt-BR.yml +2 -4
- data/config/locales/ru.yml +2 -4
- data/config/locales/tr.yml +2 -4
- data/config/locales/uk.yml +2 -4
- data/config/locales/zh-CN.yml +2 -4
- data/lib/good_job/active_job_extensions/batches.rb +5 -1
- data/lib/good_job/active_job_extensions/interrupt_errors.rb +3 -2
- data/lib/good_job/bulk.rb +1 -0
- data/lib/good_job/configuration.rb +14 -0
- data/lib/good_job/engine.rb +2 -0
- data/lib/good_job/log_subscriber.rb +9 -0
- data/lib/good_job/version.rb +1 -1
- metadata +495 -459
data/lib/good_job/engine.rb
CHANGED
|
@@ -48,6 +48,8 @@ module GoodJob
|
|
|
48
48
|
GoodJob.on_thread_error = rails_config[:on_thread_error] if rails_config.key?(:on_thread_error)
|
|
49
49
|
GoodJob.preserve_job_records = rails_config[:preserve_job_records] if rails_config.key?(:preserve_job_records)
|
|
50
50
|
GoodJob.retry_on_unhandled_error = rails_config[:retry_on_unhandled_error] if rails_config.key?(:retry_on_unhandled_error)
|
|
51
|
+
|
|
52
|
+
GoodJob.configuration.warn_dequeue_query_sort_default
|
|
51
53
|
end
|
|
52
54
|
end
|
|
53
55
|
|
|
@@ -254,6 +254,15 @@ module GoodJob
|
|
|
254
254
|
end
|
|
255
255
|
end
|
|
256
256
|
|
|
257
|
+
# @!macro notification_responder
|
|
258
|
+
def enqueue_jobs_individually(event)
|
|
259
|
+
jobs = event.payload[:jobs]
|
|
260
|
+
|
|
261
|
+
info do
|
|
262
|
+
"Enqueuing #{jobs.size} #{'job'.pluralize(jobs.size)} with enqueue concurrency limits individually instead of in bulk: #{jobs.map { |job| job.class.name }.uniq.join(', ')}"
|
|
263
|
+
end
|
|
264
|
+
end
|
|
265
|
+
|
|
257
266
|
# @!macro notification_responder
|
|
258
267
|
def systemd_watchdog_start(event)
|
|
259
268
|
interval = event.payload[:interval]
|