earl / beanstalkc

A simple beanstalkd client library for Python
Apache License 2.0
457 stars 115 forks source link

peek_delayed() works only with 'default' tube #18

Closed TomasB closed 12 years ago

TomasB commented 12 years ago

Send to a tube other than 'default' a delayed job, peek_delayed() won't return that job. Doing exactly the same with 'default' tube, peek_delayed() will happily return that delayed job.

TomasB commented 12 years ago

I submitted ticket on beanstalkd: https://github.com/kr/beanstalkd/issues/102 Make sure you read it, it has more details.

TomasB commented 12 years ago

looks like you need to call use('yourtube') in order to be able to use peek_delayed()

earl commented 12 years ago

peek_{ready,delayed,buried} only operate on the currently used tube, yes. I'll add a note to that effect to the tutorial (see issue #19).