Reputation: 424
I have a celery task calling a bash command (I can use os.system() or subprocess.Popen()).
When I call :
revoke(task_id, terminate=True)
on my task, the subprocess executing my bash command and created by my task is not killed. Is there a way to do that ?
Upvotes: 1
Views: 1368
Reputation: 2529
According to the docs, a SIGTERM signal is sent when terminate=True
.
http://docs.celeryproject.org/en/latest/userguide/workers.html#revoke-revoking-tasks
Since SIGTERM can be ignored, maybe try sending a SIGKILL?
Upvotes: 2