beanstalkd / beaneater

The best way to interact with beanstalkd from within Ruby
http://beanstalkd.github.com/beaneater
MIT License
199 stars 43 forks source link

jobs are not reserved but the tube is being watched #43

Open spesalvi opened 10 years ago

spesalvi commented 10 years ago

I'm using @beanstalk.jobs.process! to automatically process the jobs. But I find that, after some time, my scripts are not getting any jobs.

Issuing stats-tube command shows that there are x number of clients watching the tube, but there are 0 clients in waiting state. The number of jobs keep increasing, but none of the clients receives any job.

Sample out of stats-tube below

stats-tube email.send.v1
OK 263

---
name: email.send.v1
current-jobs-urgent: 0
current-jobs-ready: 10
current-jobs-reserved: 0
current-jobs-delayed: 0
current-jobs-buried: 0
total-jobs: 196704
current-using: 0
current-watching: 1
current-waiting: 0
cmd-pause-tube: 0
pause: 0
pause-time-left: 0

If I stop and start my scripts, jobs get processed. Any input on this will helpful

Shantanuprakash3 commented 7 years ago

Is there any update on this? I faced a similar issue. My worker got stuck as the client wouldn't reserve the jobs, even though there were enough jobs in 'ready'.

giovannelli commented 5 years ago

@Shantanuprakash3 I'm experiencing the same issue. I'm looking into this.