Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clearing pending jobs #17

Open
ahmedalmulki opened this issue Sep 25, 2018 · 3 comments
Open

clearing pending jobs #17

ahmedalmulki opened this issue Sep 25, 2018 · 3 comments

Comments

@ahmedalmulki
Copy link

can I flush all pending jobs like a flush queue or clear queue something like that, if I have 20000 jobs ready in admin panel and I want to delete them that because I made some mistake, is that possible?

@ksassnowski
Copy link
Collaborator

I think this is similar to #5, isn't it? I haven't gotten around to implementing something like that but I'd happily accept a merge request for it. I haven't looked into it but I can't imagine that it would be particularly hard to implement.

@ahmedalmulki
Copy link
Author

Yes, it is similar to this section"Is there a way to remove all jobs from a tube? We have a need to empty them sometimes", in Larvel community suggest to use a package like this, but it will be better if this package support that to clear all queue from Beanstalkd UI admin panel.

@ksassnowski
Copy link
Collaborator

It looks like Beanstalkd itself doesn't expose a command to flush a tube. See this open issue from 2009 on the beanstalkd repository.

That means we would have to build the command manually by looping over all commands in the tube. This shouldn't be too hard to implement and I would appreciate a pull request for it. Otherwise I don't have an ETA on when I will implement this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants