user2297996
user2297996

Reputation: 1574

Unable to bury job beanstalkd

I'm using Beanstalkd via NodeJS (fivebeans client).

I cannot bury jobs, not even using telnet!

The answer to client.bury(jobID,priority) is always "NOT_FOUND". This is the case even when there is only 1 job in the system (inserted with Node) and I'm tryint to bury it directly, issuing a beanstalkd command through telnet:

bury 1 1000

But this returns "NOT_FOUND" too...

What could be wrong? stats-job() and delete work fine, so only bury has problems.

Thanks in advance

Upvotes: 2

Views: 575

Answers (1)

Alister Bulman
Alister Bulman

Reputation: 35169

BURY can only be run after the job has been RESERVEd

peek-ready
FOUND 1 5
hello
bury 1 100
NOT_FOUND

reserve
RESERVED 1 5
hello

bury 1 100
BURIED

Upvotes: 0

Related Questions