laravel / horizon

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

Added Command to Remove Specific Job from Queue #1401

Closed noatudor closed 8 months ago

noatudor commented 8 months ago

Summary This PR introduces a new console command horizon:forget-pending which allows specific jobs to be removed from the Laravel queue based on their Job ID.

Benefit to End Users This contribution enhances the Laravel job handling by providing the users with the capability to specifically target and remove unwanted or troublesome jobs from their queues, thereby allowing for better control and management of the queue jobs.

taylorotwell commented 8 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.