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']
精彩评论