I am facing the exact same issue. It works only if I use default queue
otherwise it hangs forever. I tried with simple client and server and found
that this issue is present.
Did you solve this one ?
I am attaching test files which shows this issue.
On Monday, 24 November 2014 13:57:50 UTC+5:30, xingfa gong wrote:
>
> When I use the reserve command, it is always blocked.
> I use the python client-beanstalkc to communicate with the
> beanstalked, I put some data in a queue named 'foo', but when the consumer
> use the 'reserve' operation, it is blocked for a long time. Has anybody
> encounter this problems?
>
--
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.
#!/usr/bin/python
import beanstalkc
beanstalk = beanstalkc.Connection(host='localhost', port=11300)
beanstalk.use('test')
while True:
job = beanstalk.reserve()
print(job.body)
job.delete()
#!/usr/bin/python
import time
import beanstalkc
i = 0
beanstalk = beanstalkc.Connection(host='localhost', port=11300)
beanstalk.use('test')
while True:
beanstalk.put('Message %d' % i)
i += 1
time.sleep(10)