So I have a shell script that daemonizes celery, and creates a bunch of workers running as a daemon. I would like to have a way to restart the celery task when the underlying source gets changed since the
--autoreload option does not work.
According to my reading of the celery docs,
kill -HUP $pid will kill the daemonized celery process and then make a new one with the same arguments. However, when I try it, celery goes down and doesn't come back up. Is something wrong with my command? Could celery be failing silently in the background when it starts (and if this is the case, where would I go to figure out what's wrong and see log output)?
Literal command is
kill -HUP \`cat /var/run/celery/w1.pid\`. Checking
ps aux | grep celery returns nothing. There is no logfile output at all after I send the kill signal.