Skip to content
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

Soft stop of queue worker - Support for pcntl signals (For ex. stopping from supervisor or by SIGTERM) #150

Open
xYundy opened this issue Oct 3, 2021 · 0 comments

Comments

@xYundy
Copy link

xYundy commented Oct 3, 2021

Hey! For now when you use supervisor or if you wanna try "soft stop" the queue worker by SIGTERM it will be killed/exited immediately.

I think app should support SIGTERM (or maybe others) signal and stop the process after finish currently running task.

It will be helpful for ex when you release new version of application and you want to stop, upgrade and restart queue workers without loosing or interrupting any work.

Helpful Links

https://www.php.net/manual/en/function.pcntl-signal.php
http://www.hackingwithphp.com/16/1/1/taking-control-of-php

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

No branches or pull requests

1 participant