[Backgroundrb-devel] backgroundrb launches concurrent instances of same job

skaar skaar at waste.org
Sun Feb 18 20:35:40 EST 2007


* Brian Lucas (blucasco at gmail.com) [070218 17:48]:
> Hi there,
> Backgroundrb is working pretty well for me but I have a job that launches
> two of the same job, apparently a minute(?) apart from each other.  Should
> this be happening if I have repeat interval enabled with a job_key?  It
> seems like it should wait until the job is finished before launching a new
> instance.
> 
> --Backgroundrb_schedules.yml--
> city_updater:
>   :class: :city_updater_worker
>   :job_key: :city_updater
>   :worker_method: :do_work
>   :worker_method_args: scheduled workers require some args, so here you
> go...
>   :trigger_args:
>       :start: <%= Time.now + 5.seconds %>
>       :repeat_interval: <%= 1.minutes %> 
> 
> It's currently launching two instances of city_updater, one minute apart fro
> the other.

you see these as processes or as log entries?

/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