[Backgroundrb-devel] start a worker when bdrb starts

skaar skaar at waste.org
Mon Nov 6 23:43:10 EST 2006


* hemant (gethemant at gmail.com) [061106 22:32]:
> I am sure..again I am missing something, but I am trying to start a
> worker, when backgroundrb starts and it doesn't seem to work.
> 
> Here is my config/backgroundrb_schedules.yml file:
> 
> feed_worker:
>   class: feed_worker
>   job_key: feed_worker_key
>   worker_method: do_work
>   trigger_args:
>     repeat_interval: 20.minutes

try to use symbols and to specify a start time:

feed_worker:
   :class: :feed_worker
   :job_key: :feed_worker_key
   :worker_method: :do_work
   :trigger_args:
     :start: <%= Time.now %>
     :repeat_interval: <%= 20*60*60 %>

/skaar


-- 
----------------------------------------------------------------------
|\|\             where in the       |          s_u_b_s_t_r_u_c_t_i_o_n 
| | >===========  W.A.S.T.E.        |                  genarratologies 
|/|/    (_)     is the wisdom       |                  skaar at waste.org
----------------------------------------------------------------------


More information about the Backgroundrb-devel mailing list