clear Beanstalk queue

1,744 views
Skip to first unread message

AB

unread,
Aug 11, 2014, 5:40:51 PM8/11/14
to beansta...@googlegroups.com
is there a way to clear beanstalk queue ? I am on laravel 4.2 in development.  I would like to be able to just clear the whole queue when Im testing

Chad Kouse

unread,
Aug 11, 2014, 6:18:44 PM8/11/14
to AB, beansta...@googlegroups.com
For testing you can just turn off persistence and then just restart the daemon to wipe it out..

In general though - no — to drain the queue you have to consume every job and delete it.. I had a script that would do it — it goes quick :D

-- 
Chad Kouse
Sent with Airmail

On August 11, 2014 at 5:48:16 PM, AB (belk...@gmail.com) wrote:

is there a way to clear beanstalk queue ? I am on laravel 4.2 in development.  I would like to be able to just clear the whole queue when Im testing
--
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 beanstalk-tal...@googlegroups.com.
To post to this group, send email to beansta...@googlegroups.com.
Visit this group at http://groups.google.com/group/beanstalk-talk.
For more options, visit https://groups.google.com/d/optout.

AB

unread,
Aug 11, 2014, 6:29:25 PM8/11/14
to beansta...@googlegroups.com, belk...@gmail.com
thanks Chad, I figured it out you can use delete <id> a command found on  https://github.com/kr/beanstalkd/blob/master/doc/protocol.txt, connected via socat and deleted the jobs I needed.I can see the use of a script to loop through all jobs. I understand that they should be consumed but in dev mode you want to be able to target specific jobs to obtain the result and sometimes wiping out everything can save a lot of time. thanks again for the tip I will try it !
Reply all
Reply to author
Forward
0 new messages