laravel / horizon

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

Command to forget all failed jobs command #1407

Closed jaroslavstefanec closed 7 months ago

jaroslavstefanec commented 7 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 7 months ago

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