Refactoring: Stopping of scheduler worker process (via SIGTERM) isn't handled gracefully and prints Error (with Backtrace).

This commit is contained in:
Thorsten Eckel 2019-01-02 17:31:12 +01:00
parent ed448c7f50
commit 178f0dfa17

View file

@ -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