Reputation: 53
Is there a way to remove all jobs from a queue. We use Laravel Horizon to monitor it. We recognised that there are way to many jobs running in the queue.
Upvotes: 1
Views: 1774
Reputation: 33186
There is no direct way to do this, but depending on the driver you use you can remove them manually.
I am using the database driver and I often remove queued items if there are to many or one is stuck. In my project I have created a database model for jobs to do this.
Upvotes: 2