actumn / celery.node

Celery task queue client/worker for nodejs

Home Page:https://celery-node.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handle `SIGTERM` signals

crosvera opened this issue · comments

On Python, Celery handles the SIGTERM signal in order to stop the worker to receive more tasks, waits for the current job to finish and the worker shutdowns. Is it possible to archive this in the Node version? I tried to send a SIGTERM signal on a worker (while it was doing some job) but interrupted the processing and got terminated.

Thanks in advance.