what's different between delete and bury method?

520 views
Skip to first unread message

nnn

unread,
Oct 15, 2009, 11:10:43 PM10/15/09
to beanstalk-talk
BEANSTALK = Beanstalk::Pool.new(['localhost:11300'])

what does these method meaning?
BEANSTALK.reserve
// reserve a new message?
BEANSTALK.release

BEANSTALK.delete
// delete a message instance?
BEANSTALK.bury


any of document was talking about this?

Yun Huang Yong

unread,
Oct 16, 2009, 12:10:30 AM10/16/09
to beansta...@googlegroups.com
nnn wrote:
> what does these method meaning?
> any of document was talking about this?

You seem to be talking about 3 different transitions:
- release
- bury
- delete

All of these apply to a RESERVED job.

http://github.com/kr/beanstalkd/blob/master/doc/protocol.txt

Lines 88 to 105 contain a nice diagram of the job states & transitions.

yun

--
Yun Huang Yong
y...@nomitor.com ...nom nom nom
+61 408 131 419
--

Reply all
Reply to author
Forward
0 new messages