Skip to content

Conversation

@LachlanArthur
Copy link
Contributor

This PR adds a listener for the SIGQUIT signal.

The queue worker currently listens for SIGTERM to gracefully exit.

However, the official Docker PHP-FPM images (and most images based on them) have the stop signal set to SIGQUIT instead:

$ docker inspect php:8.1-fpm | jq '.[0].ContainerConfig.StopSignal'
> "SIGQUIT"

This means that when Docker executes a stop/restart/etc command, the SIGQUIT signal sent by Docker is not detected. The queue worker continues to run jobs up until it's SIGKILLed by Docker - potentially halfway through a job.

@taylorotwell taylorotwell merged commit 14cd42d into laravel:9.x Aug 9, 2022
chu121su12 pushed a commit to chu121su12/framework that referenced this pull request Aug 12, 2022
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