search for: workercleaner

Displaying 1 result from an estimated 1 matches for "workercleaner".

2007 Mar 07
0
Garbage collection kills my logger and results jobs too
I wrote the following script to run garbage collection on Backgroundrb workers older than 30 minutes: class WorkerCleaner def self.remove_stale_workers MiddleMan.gc!(Time.now - 60*30) end end I stuck is under /lib in my Rails app and run it using script/runner from a cron job. The only problem I''m seeing is that this script kills my backgroundrb_results and backgroundrb_logger jobs after they'...