[Backgroundrb-devel] cronjob, backgroundrb and crashes

hemant gethemant at gmail.com
Fri Jul 11 08:29:36 EDT 2008


On Fri, Jul 11, 2008 at 4:40 PM, Cédric <akyrho at gmail.com> wrote:
> Hello everyone,
>
> I get some trouble with backgroundrb, and I hope finding some help right
> here :-)
>
> Here's the case :
>
> Step 1 : A cron job is calling a given URL, each minute
>
> Step 2 : A controller, called by the previous step, is loading a new worker
> after some test  :
>
> MiddleMan.new_worker(
>                   :worker => :urls_worker,
>                   :job_key => "url_" + url.id.to_s,
>                   :data => { :url => url.address, :from_public_form => false
> })
>
> Step 3 : The worker works... or not. Randomly, the call to the worker just
> fail and the worker is not loaded, but backgroundrb is working anyway.
>
> When the call failed once, i've got to kill and restart (most of the time,
> more than once) backgroudrb to make it works again.
>

It could be because, you can't reuse job_keys while starting new
workers as reported in previous mail.


More information about the Backgroundrb-devel mailing list