We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Today, I wanted to clear all failed jobs in Laravel Horizon on my development server.
Luckily, there is the documentation:
Deleting Failed Jobs
If you would like to delete a failed job, you may use the
horizon:forget
command. Thehorizon:forget
command accepts the ID or UUID of the failed job as its > only argument:php artisan horizon:forget 5
If you would like to delete all failed jobs, you may provide the
--all
option to thehorizon:forget
command:php artisan horizon:forget --all
What is weird is that there is no command to clear the completed jobs…
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.