laravel / horizon

Dashboard and code-driven configuration for Laravel queues.
https://laravel.com/docs/horizon
MIT License
3.83k stars 643 forks source link

Command to forget all failed jobs command #1407

Closed jaroslavstefanec closed 4 months ago

jaroslavstefanec commented 4 months ago

This pull request introduces a new console command, horizon:forget-all-failed-jobs, which allows for the removal of all failed jobs.

Benefits to End Users: This addition resolves various discussions regarding how to delete failed jobs and prevents users from resorting to using flushdb to delete only failed jobs.

taylorotwell commented 4 months ago

Should just be horizon:forget --all if added at all.