[Backgroundrb-devel] worker and sleep

hemant gethemant at gmail.com
Fri Jan 25 05:27:52 EST 2008

On Fri, Jan 25, 2008 at 3:15 PM, Meng Kuan <mengkuan at gmail.com> wrote:
> Hi Hermant,
>  I have seen some earlier messages in the list where you warned people
>  never to use sleep() in workers. However, currently I have a need for
>  a worker to issue a command to an external host and then keep
>  checking that external host for a status change. Other than sleep,
>  what else can be used to make a worker wait some time (say 1 second)
>  between checks?

add_periodic_timer(1) { check_status_change }

Let them talk of their oriental summer climes of everlasting
conservatories; give me the privilege of making my own summer with my
own coals.


More information about the Backgroundrb-devel mailing list