That method is run on single Job. If you wanted to delete a tube that
has jobs in it then you will have to iterate over every Job and
Finish() it - after you Finish() the last Job from that tube then
Beanstalkd will automagically delete the actual tube.

/Cody

On Tue, Jul 20, 2010 at 11:34 AM, BeagleGuy <[email protected]> wrote:
> thanks Cody, will that delete an entire queue or just one job in the
> queue? I'm looking to actually empty an entire tube of jobs to
> basically start fresh
>
>
>
> On Jul 20, 9:55 am, Cody Caughlan <[email protected]> wrote:
>> BeagleGuy-
>>
>> The command is just the normal 'delete' command which you issue after
>> you've successfully processed a job.
>>
>> If you're using pybeanstalkd at:
>>
>> http://github.com/sophacles/pybeanstalk/blob/master/beanstalk/job.py
>>
>> Then its the "Finish" method on job.py (as an aside I would argue the
>> method should be called 'delete' since thats what the Beanstalkd
>> command is - it is kind of confusing to have that differentiation).
>>
>> /Cody
>>
>>
>>
>> On Tue, Jul 20, 2010 at 9:39 AM, BeagleGuy <[email protected]> wrote:
>> > I didn't see a command for that from the docs in the python client..
>> > what command might that be?
>>
>> > On Jul 19, 7:21 pm, Zhu Han <[email protected]> wrote:
>> >> If you delete all messages in the tube, the empty tube will be wiped out
>> >> automatically.
>>
>> >> best regards,
>> >> hanzhu
>>
>> >> On Tue, Jul 20, 2010 at 9:20 AM, BeagleGuy <[email protected]> wrote:
>> >> > Curious if there was a way to delete whats in a tube? For example
>> >> > during testing stages there may be times I load up data in the wrong
>> >> > format or I'm experimenting with different formats. Currently I'm
>> >> > restarting beanstalk at the loss of the other tubes. Is there a way to
>> >> > empty a single tube out?
>>
>> >> > thanks
>>
>> >> > --
>> >> > 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]<beanstalk-talk%2bunsubscr...@go
>> >> >  oglegroups.com>
>> >> > .
>> >> > For more options, visit this group at
>> >> >http://groups.google.com/group/beanstalk-talk?hl=en.
>>
>> > --
>> > 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 
>> > athttp://groups.google.com/group/beanstalk-talk?hl=en.
>
> --
> 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.
>
>

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