cakephp-queuesadilla icon indicating copy to clipboard operation
cakephp-queuesadilla copied to clipboard

Gracefull restart

Open hw-rjuzak opened this issue 3 years ago • 1 comments

I have created a worker process with systemd. After every deployment the worker need to be restarted so the code changes can be reflected. Is there a possibility to send a kill signal to the worker that will let the current job finish and then stop the process so systemd can restart it?

hw-rjuzak avatar Jan 27 '22 13:01 hw-rjuzak

There are some signals that cause the worker to gracefully exit. For example, you can send a SIGQUIT to the worker with kill -3 . After the current job is completed, the worker will exit. source

This should indeed be mentioned in the Documentation.

bhelm avatar Jan 31 '22 17:01 bhelm