开发者

Monitoring several delayed jobs using god

So far I've been monitoring a single delayed job using god and its been working great. I want to start monitoring several delayed jobs, how can I pass a parameter 开发者_JS百科when stating god that will indicate how many delayed_jobs god should monitor/start?


You could set a predefined variable in the shell before call god, and in your god config look for the contents of that shell variable to know how many jobs to start. You would probably want a default value for that variable.

Something like: $ env GOD_JOBS=3 god ...

And then use the below in your god config: ENV['GOD_JOBS']

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜