Refactoring: Stopping of scheduler worker process (via SIGTERM) isn't handled gracefully and prints Error (with Backtrace).
This commit is contained in:
parent
ed448c7f50
commit
178f0dfa17
1 changed files with 5 additions and 1 deletions
|
@ -62,5 +62,9 @@ Daemons.run_proc('scheduler', daemon_options) do
|
|||
Rails.logger.info 'Scheduler stopped.'
|
||||
end
|
||||
|
||||
begin
|
||||
Scheduler.threads
|
||||
rescue Interrupt
|
||||
nil
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue