On Sun, Dec 20, 2009 at 4:53 AM, Al-Faisal El-Dajani
<[email protected]> wrote:
> If I only know the body of the job (or a part of it), is there anyway
> to find all jobs that contain that body? Or do I have to loop over all
> jobs, reserve, check body, and release if it was not the one I want?

Beanstalkd has no function for that. You could scan through all the
jobs yourself. If you need to do it a lot, you might consider building
an auxiliary data structure to make this faster. For example, in a
key-value store, you could map the hash of the job body to the job id.
Or you could use a full-text index of some sort.

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