lib/good_job/cli.rb in good_job-3.10.1 vs lib/good_job/cli.rb in good_job-3.11.0
- old
+ new
@@ -93,10 +93,10 @@
GoodJob.configuration.options.merge!(options.symbolize_keys)
configuration = GoodJob.configuration
Daemon.new(pidfile: configuration.pidfile).daemonize if configuration.daemonize?
- notifier = GoodJob::Notifier.new
+ notifier = GoodJob::Notifier.new(enable_listening: GoodJob.configuration.enable_listen_notify)
poller = GoodJob::Poller.new(poll_interval: configuration.poll_interval)
scheduler = GoodJob::Scheduler.from_configuration(configuration, warm_cache_on_initialize: true)
notifier.recipients << [scheduler, :create_thread]
poller.recipients << [scheduler, :create_thread]