Closed knguyen1794 closed 3 years ago
You should find the process id and send it a SIGTERM
signal. On UNIX you would run ps aux | grep dramatiq
, take the process id (2nd column) and pass it to kill
(eg. kill 123
).
You should find the process id and send it a
SIGTERM
signal. On UNIX you would runps aux | grep dramatiq
, take the process id (2nd column) and pass it tokill
(eg.kill 123
).
Thanks. I will take a look on how to do it. Pull request for the Docs is welcome?
I don't think a documentation change is necessary here, but thank you for offering. How to do this is general systems administration knowledge and not related to dramatiq specifically.
@Bogdanp sending SIGTERM to the dramatiq
process will stop it from pulling messages off the queue, but will wait for all workers to finish processing their messages — correct? (See also Deploy best practices.)
I have dramatiq running in the background as I have a script set up to run "python manage.py rundramatiq" when system starts up. However I couldn't find a way to terminal the running dramatiq.