This package enhances your ability to efficiently manage the list of failed jobs within Laravel Horizon. It introduces two new console commands to your Laravel application, enabling you to manually flush all failed jobs stored in Redis, as well as flush all keys generated by Horizon in Redis.
While Laravel Horizon automatically purges failed jobs after 7 days by default, this package provides you with the flexibility to perform the flush operation manually through console commands whenever necessary.
- Laravel version 8.0 or newer
- Laravel Horizon
- Redis as the caching and session driver
To incorporate the package into your project, execute the following command through Composer:
composer require kfoobar/flush-horizon
To clear all failed jobs from your queue, utilize the command below:
php artisan horizon:flush
For a complete data reset, including all jobs and records, run:
php artisan horizon:reset
Your contributions are highly appreciated! We welcome any form of contribution to improve and expand the functionality of this package.
The MIT License (MIT). Please see License File for more information.