Skip to content

Update queue:work to handle SIGINT signal #56458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 28, 2025

Conversation

ziadoz
Copy link
Contributor

@ziadoz ziadoz commented Jul 27, 2025

I noticed that the queue:work command doesn't fire the WorkerStopped event when a SIGINT signal is received. For example, when using Ctrl+C to kill a queue worker in the terminal. I'm using the worker events to capture information about the state of workers, and noticed this wasn't happening.

Copy link

Thanks for submitting a PR!

Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@ziadoz ziadoz marked this pull request as ready for review July 27, 2025 22:03
@taylorotwell taylorotwell merged commit db875da into laravel:12.x Jul 28, 2025
62 checks passed
@ziadoz ziadoz deleted the queue-signals branch July 28, 2025 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants