I am running celery via redis. I start my worker like this:
celery multi start worker1 -A mypackage.tasks.tasks
celery multi v3.1.18 (Cipater)
> Starting nodes...
> worker1@polyphemus.xxx.net: OK
And I kill it like this:
celery multi kill worker1
celery multi v3.1.18 (Cipater)
> worker1@polyphemus.xxx.net: DOWN
But the worker is actually still running. I can not start the worker again:
celery multi start worker1 -A mypackage.tasks.tasks
celery multi v3.1.18 (Cipater)
> Starting nodes...
ERROR: Pidfile (worker1.pid) already exists.
Seems we're already running? (pid: 29369)
> worker1@polyphemus.xxx.net: OK
If I kill the process, everything is ok:
kill 29369
But that is too cumbersome: I need to know the PID. How to really kill the worker with the celery command line tool?