-
Notifications
You must be signed in to change notification settings - Fork 660
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
Clear all jobs of one queue #328
Comments
You can create a command that executes code like:
And it will clear that queue's jobs (which are ready/have not yet been run). |
Can you give a real life example ?because this doesn't seem to give me any effect. Also dell seems to accept array type values not string. Update: Solved my issue - turns out my redis connection is called 'horizon' . So |
Yeah, but its better that i can do this in Horizon self! 👍 |
@tomswinkels Fully agree - that would be a great improvement ! |
yup! would be cool to clear the queue via interface! +1 |
@taylorotwell :-) ? |
Try using this package: https://github.com/morrislaptop/laravel-queue-clear |
I'll mark this as a feature request for now. Would be open to PRs which would implement this in a nice and clean way. |
Ideally the functionality is available in Laravel but Horizon can expose an UI for that… |
Currently looking for this now |
@dillingham what a diligent user, clicking that button 90k times 😆 |
Any news about when this feature will be added to horizon??? |
@andreladocruz as soon as someone sends in a pr |
@neorganic, do you know how to run it in tinker? |
thanks... do you know how to run the command Redis::connection('horizon')->del('queues:queue-name') in tinker?
|
@parkourben99 thnx for creating a pr :) |
Since Taylor rejected the PR we're probably not going to implement this anytime soon, sorry. Anyone's free to do another attempt of the related PR which solves all the things that still need to be taken care of. |
I'm using this command for clearing queue.
Unfortunately it's not removing delayed jobs. Anyone have any clue about this. Update: |
I had to give id explicitly like so:
|
to cleaning all failed and completed : if u uses password: after: |
Hi,
In beanstalk there is some button "Delete all ready jobs" is there in horizon also a button for that action?
The text was updated successfully, but these errors were encountered: