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
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

:trigger_args: 0 0 */6 * * * *
:trigger_args: 0 0 20 * * * *

:trigger_args: 0 */1 * * * * *

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs