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.
@@ -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]
@@ -3,7 +3,7 @@
3
3
 
4
4
  module GoodJob
5
5
  # GoodJob gem version.
6
- VERSION = '4.24.1'
6
+ VERSION = '4.24.2'
7
7
 
8
8
  # GoodJob version as Gem::Version object
9
9
  GEM_VERSION = Gem::Version.new(VERSION)