lib/good_job/capsule.rb in good_job-3.15.13 vs lib/good_job/capsule.rb in good_job-3.15.14
- old
+ new
@@ -47,10 +47,10 @@
# * +0+ will interrupt active threads.
# * +N+ will wait at most N seconds and then interrupt active threads.
# * +nil+ will trigger a shutdown but not wait for it to complete.
# @return [void]
def shutdown(timeout: :default)
- timeout = timeout == :default ? @configuration.shutdown_timeout : timeout
+ timeout = @configuration.shutdown_timeout if timeout == :default
GoodJob._shutdown_all([@notifier, @poller, @scheduler, @cron_manager].compact, timeout: timeout)
@startable = false
@running = false
end