smashin.  how about if i reserve a job, delete it, then go to reserve the 
next job...if one isnt there, and an exception results, can i use that to 
end my deleting loop? rather than parsing yaml stats?

cheers

steve

On Thursday, 31 July 2014 07:08:02 UTC+1, Yue Du wrote:

> Hello, Steve 
>
> On Thu, Jul 31, 2014 at 1:56 PM, Steve Allie <[email protected] 
> <javascript:>> wrote: 
> > thanks, Yue,  how do i see if there are jobs still in  the tube using 
> stats? 
> > 
>
> Use stats-tube command [1]. Adding up all that current-jobs-xxx you'll 
> get what you want. 
>
> In beantalkc, it's connection.stats_tube('tube-name') [2]. 
> There are examples in beanstalkc TUTORIAL.mkd [3], too. 
>
>
> [1] 
> https://github.com/kr/beanstalkd/blob/master/doc/protocol.md#stats-tube-responses
>  
> [2] https://github.com/earl/beanstalkc/blob/master/beanstalkc.py#L213 
> [3] https://github.com/earl/beanstalkc/blob/master/TUTORIAL.mkd 
>
>
>
> Regards, 
> Yue Du 
>

-- 
You received this message because you are subscribed to the Google Groups 
"beanstalk-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/beanstalk-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to