lib/good_job/cli.rb in good_job-1.9.1 vs lib/good_job/cli.rb in good_job-1.9.2
- old
+ new
@@ -81,10 +81,10 @@
Daemon.new(pidfile: configuration.pidfile).daemonize if configuration.daemonize?
notifier = GoodJob::Notifier.new
poller = GoodJob::Poller.new(poll_interval: configuration.poll_interval)
- scheduler = GoodJob::Scheduler.from_configuration(configuration)
+ scheduler = GoodJob::Scheduler.from_configuration(configuration, warm_cache_on_initialize: true)
notifier.recipients << [scheduler, :create_thread]
poller.recipients << [scheduler, :create_thread]
@stop_good_job_executable = false
%w[INT TERM].each do |signal|