laravel / horizon

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

Share an idea I use on other projects to clear all Horizon jobs #1422

Closed alnutile closed 5 months ago

alnutile commented 5 months ago

As a user I sometimes just want to clear all Horizon queues and not one by one by name.

This command does that.

php artisan horizon:clear_all
taylorotwell commented 5 months ago

Thanks for your pull request to Laravel!

Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.

If possible, please consider releasing your code as a package so that the community can still take advantage of your contributions!

If you feel absolutely certain that this code corrects a bug in the framework, please "@" mention me in a follow-up comment with further explanation so that GitHub will send me a notification of your response.

alnutile commented 5 months ago

Good idea about the package. Was that ai that replied though or the real thing? 🤔