wbsurfver-/E1597aS9LQAvxtiuMwx3w@public.gmane.org
2009-May-13 15:42 UTC
backgroundrb launched 8 workers via cron which I did not understand
I have a worker my_tree worker as shown in my backgroundrb.yml file below. I played around with the trigger_args setting which I had it calling update_main_tree() every 1 minute. This opens a tree structure in my db that I set and rebuilds it. After it seemed to be working ok, I then set the tree to be updated to be a larger tree and set the trigger_args to happen at 8:00 pm, and then went home. I do not have reload_on_schedule set. When I came in the next day, my machine was nearly hung as at 8:00 pm according to my log file, 8 different workers got launched on update_main_tree() :schedules: :session_mgr_worker: :expire_sessions: :trigger_args: 0 0 */6 * * * * :my_tree_worker: :update_main_tree: :trigger_args: 0 0 20 * * * * # :trigger_args: 0 */1 * * * * *
Larz
2009-May-13 16:32 UTC
Re: backgroundrb launched 8 workers via cron which I did not understand
I noticed that the example in my book has an explicit exit() call at the end of the worker create(). I think that might have something to do with it as when I invoke other methods that create workers, instances of packet_worker_runner seem to hang around. I didn''t have such an exit() call in my code.