[Backgroundrb-devel] Scheduling one-off tasks

hemant gethemant at gmail.com
Tue Jul 22 02:22:51 EDT 2008


On Tue, Jul 22, 2008 at 11:49 AM, Joost Baaij <joost at spacebabies.nl> wrote:
>
> I don't understand, which select are you referring to?
>
> Is that a method somewhere in backgroundrb?

I meant select system call, which does IO multiplexing.

>
>> Also, by "one off", you mean, a worker that starts when on schedule
>> and stops after that, you can use "reload_on_schedule true" in worker.
>
> Not entirely what I mean, I mean I only need to execute one command at one
> time in the future.
>
> So for example I only need to call the Rails method
> expire_fragment('sidebar') at 2008-07-24 21:00:00 as a one-time event.

use add_timer() { foobar() }

Thats your one off timer.


More information about the Backgroundrb-devel mailing list