I was wondering if anyone could give me some tips (or a config file
haha) on how to get god to monitor ThinkingSphinx's delayed deltas
process.  I'm not really sure how to do this because to run the job
you just run "rake ts:dd" in your app directory.  The task launches a
DelayedWorker that will run "forever" (well until it dies or you hit
ctrl-c, hence the god requirement) to process delta indexes in the
background.  I was going to just daemonize that by doing "rake ts:dd
> /dev/null &" to get the process running in the background.

As far as I can see there is no "stop" command other than ctrl-c
assuming you didn't daemonize the process or kill [pid] if you did.
Is this something I can monitor with god to make sure the delayed
delta worker is always running?  If so, how?

Here is what the output from the non-daemonized task looks like:

cafecourses ~/public_html/cafecourses.com/current: rake ts:dd
(in /home/user/public_html/cafecourses.com/releases/20090316195223)
*** Starting job worker host:cafecourses pid:21676

Here is what the running task looks like in top:

21676 user   20   0  171m  92m 3472 S    0 18.1   0:08.18 /usr/bin/
ruby1.8 /usr/bin/rake ts:dd

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"god.rb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/god-rb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to