lib/good_job/adapter.rb in good_job-1.11.3 vs lib/good_job/adapter.rb in good_job-1.12.0

- old
+ new

@@ -55,9 +55,11 @@ @notifier = GoodJob::Notifier.new @poller = GoodJob::Poller.new(poll_interval: @configuration.poll_interval) @scheduler = GoodJob::Scheduler.from_configuration(@configuration, warm_cache_on_initialize: Rails.application.initialized?) @notifier.recipients << [@scheduler, :create_thread] @poller.recipients << [@scheduler, :create_thread] + + @cron_manager = GoodJob::CronManager.new(@configuration.cron, start_on_initialize: Rails.application.initialized?) if @configuration.enable_cron? end end # Enqueues the ActiveJob job to be performed. # For use by Rails; you should generally not call this directly.