delayed_job restart会正确重启所有进程吗?

时间:2016-05-23 11:57:18

标签: ruby-on-rails-3.2 delayed-job

所以,当我开始DJ时,我会这样做:

RAILS_ENV=production ./script/delayed_job --pool=user,op,fb:2 --pool=mail,intercom,low,default:2 start

我的问题是:当我重新启动它时,是否需要指定相同的参数?也就是说,以下命令是否足够?

RAILS_ENV=production ./script/delayed_job restart

或者我是否会停止它,并再次发出启动命令?

1 个答案:

答案 0 :(得分:0)

自己回答,是的。 DJ将在他们自己的位置正确地重新启动当前进程。

2016-05-31T06:25:59+0000: [Worker(delayed_job host:*** pid:699)] Exiting...
2016-05-31T06:26:03+0000: [Worker(delayed_job host:*** pid:709)] Exiting...
2016-05-31T06:26:05+0000: [Worker(delayed_job host:*** pid:716)] Exiting...
2016-05-31T06:26:10+0000: [Worker(delayed_job host:*** pid:723)] Exiting...
2016-05-31T06:26:16+0000: [Worker(delayed_job host:*** pid:29890)] Starting job worker
2016-05-31T06:26:16+0000: [Worker(delayed_job host:*** pid:29897)] Starting job worker
2016-05-31T06:26:16+0000: [Worker(delayed_job host:*** pid:29915)] Starting job worker
2016-05-31T06:26:16+0000: [Worker(delayed_job host:*** pid:29907)] Starting job worker

类似的东西。