In a thread[1] from Aug 2008 there's mention of a counter of the number
of times a job has been reserved.  I can't find such a counter in the
current source and am wondering if we could add it.

The main scenario that I'm trying to address is where a client reserves
a job then drops its connection.  The job is now in an unknown state
(depending on the application) and there is no indication to other
workers or a controller whether the job may have been run (perhaps
incompletely).

Currently the job is run through enqueue_reserved_jobs() which puts the
job back into 'ready' state without any indication that it had
previously been reserved.

Is it reasonable to either add a 'reserves' counter to the job struct,
or increment the 'timeouts' count?

I considered incrementing 'releases' but there is a meaningful
difference between a release instigated by the worker and a forced
release because of a connection drop (which is more akin to a timeout in
terms of indicating a possible error).

cheers,
yun


[1] http://preview.tinyurl.com/ppzjyk

-- 
Yun Huang Yong
[email protected]                           ...nom nom nom
+61 408 131 419
--

--~--~---------~--~----~------------~-------~--~----~
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