开发者

Monitoring several delayed jobs using god

开发者 https://www.devze.com 2023-03-08 09:11 出处:网络
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 w

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

精彩评论

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