Hi,
Does backgroundrb 0.2.1 support autostart?
I''ve tried to set up autostart by adding something like the following
in backgroundrb.yml:
autostart:
1:
class: bar_worker
args: ''''
However, that does not seem to work. I also tried the scheduling
mechanism like this in backgroundrb_schedules.yml:
bar:
:class: :bar_worker
:job_key: :bar1
:trigger_args: 0 * * * * * *
This works, but after around 30 to 40 mins, the scheduler will fail
and I get errors like this in the logs:
20070404-11:37:00 (23325) failed to find slave socket - (RuntimeError)
20070404-11:37:00 (23325) /usr/lib/ruby/gems/1.8/gems/slave-1.2.0/lib/
slave.rb:435:in `initialize''
If I can get autostart to work, I will not need to use the scheduling
mechanism. Any hints? If autostart is not available, how can one
start a worker when the backgroundrb daemon is started?
cheers,
mengkuan