On Sun, Aug 16, 2009 at 7:00 AM, Rhesa Rozendaal<[email protected]> wrote:
> Gurunandan wrote:
>> 2. Is there a way to set TTR, so that a job once handed to a worker is
>> never timed-out? The worker will take the responsibility of putting it
>> back on the queue in case of failure. Is this a Good Thing?
>
> Yes, you can set the TTR (assuming you use Beanstalk::Client):
>
> ...
>
> I have several types of jobs that can take up to 3 days or more to complete
> (they depend on highly variable amounts of input), so I use a very high TTR
> for those. That works great.

If you can manage it, even better would be to set the TTR to a small
value (say, 5s) and have the worker repeatedly call the touch command
while processing the job. That way, a worker caught in deadlock or an
infinite loop will not tie up the job for very long.

This assumes you want the job to be rerun by another worker. If not,
then, as Gurunandan noted, you can use the bury command.

kr

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"beanstalk-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/beanstalk-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to