Added log entries for starting and stopping the Scheduler process for reasoning purposes.
This commit is contained in:
parent
fbb7161e6b
commit
989b127453
1 changed files with 7 additions and 0 deletions
|
@ -47,6 +47,7 @@ daemon_options = {
|
|||
|
||||
name = 'scheduler'
|
||||
Daemons.run_proc(name, daemon_options) do
|
||||
|
||||
if ARGV.include?('--')
|
||||
ARGV.slice! 0..ARGV.index('--')
|
||||
else
|
||||
|
@ -55,6 +56,12 @@ Daemons.run_proc(name, daemon_options) do
|
|||
|
||||
after_fork(dir)
|
||||
|
||||
Rails.logger.info 'Scheduler started.'
|
||||
|
||||
at_exit do
|
||||
Rails.logger.info 'Scheduler stopped.'
|
||||
end
|
||||
|
||||
require 'scheduler'
|
||||
Scheduler.threads
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue