I'm using database as queue driver in my system. How can I delete a queued job that is stored in my jobs table?
Thanks
To clear a job queue, follow these steps: Expand Work Management > All Tasks > Job Queues > Active Job Queues or All Job Queues. Right-click the job queue and click Clear.
Using the laravel-queue-clear package which is developed by Craig Morris that provides a useful tool to delete all kinds of queued jobs by an artisan command. This package is comprehensive and is not only for redis. For wiping your queues clear you need to run this: php artisan queue:clear [connection] [queue]
Implement the Illuminate\Queue\InteractsWithQueue
trait which gives you access to the delete()
method.
More information in the API and in the docs under "Manually accessing the queue".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With