diff --git a/script/scheduler.rb b/script/scheduler.rb index f82aa8801..c92a95efa 100755 --- a/script/scheduler.rb +++ b/script/scheduler.rb @@ -62,5 +62,9 @@ Daemons.run_proc('scheduler', daemon_options) do Rails.logger.info 'Scheduler stopped.' end - Scheduler.threads + begin + Scheduler.threads + rescue Interrupt + nil + end end