We have beanstalkd running in our server. All our application records are stored in beanstalk before they are written into the mysql tables. Now few items got stuck inside this beanstalk queue. They are not being written into the database. So I would like to fetch all the items which are stuck in this Queue so that we can analyse further to see if they are corrupt entries. I could not find any way to list all the items from beanstalkd. Is there any way I can do it?
Asked
Active
Viewed 980 times
1
-
I don't think there's anything built in. When I've needed this, I just wrote a simple PHP script that consumes everything in the queue and displays it. – Barmar Mar 27 '15 at 10:22
-
Thanks Barmar for responding this. I am trying to write a script. Could you please give me a clue as how to do this. – user2354254 Mar 27 '15 at 10:40
-
2You use the same functions as in your normal script that fetches from the queue and adds to the database. Just change it to print the data instead of sending to the DB. – Barmar Mar 27 '15 at 10:42