I have a non-Ruby command that pulls a job from a message queue, executes 
it and then exits. This should be run over and over again as a background 
worker. If no job could be found or if something crashes it exits with an 
error.

Because I don't want to put unnecessary load on the message queue if it's 
empty, I don't want to repeat the command again for X seconds if it exits 
with an error. At the same time I would like to run multiple, concurrent 
instances of this command if there's an success exit or no exit in Y 
seconds (it's still working).

Could God be configured to help me achieve this?

I don't really know Ruby but if it's at all possible to do within God, 
maybe I could duck-tape something together. :) Pointing me in the right 
direction would be much appreciated!

-- 
You received this message because you are subscribed to the Google Groups 
"god.rb" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/god-rb.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to