Matt Black
2013-08-23 23:22:56 UTC
Hey list,
I've been toying around with restarting "celery worker" with a HUP signal,
which will shut down all current child processes, and restart with the same
args as the celery process was started.
In doing this, Supervisor sees celery is down and tries to restart it - and
fails since it restarted itself.
So really I'd like to better understand what's happening, if anyone can
assist:
- How does supervisor track processes?
- Can I not provide a "pidfile" path to supervisor to watch/use?
- Would the inclusion of this pull
request<https://github.com/Supervisor/supervisor/issues/179>enable
supervisor to restart celery with a HUP and keep track of it?
For now, I'll avoid HUP and use supervisor directly to restart celery :)
Cheers
I've been toying around with restarting "celery worker" with a HUP signal,
which will shut down all current child processes, and restart with the same
args as the celery process was started.
In doing this, Supervisor sees celery is down and tries to restart it - and
fails since it restarted itself.
So really I'd like to better understand what's happening, if anyone can
assist:
- How does supervisor track processes?
- Can I not provide a "pidfile" path to supervisor to watch/use?
- Would the inclusion of this pull
request<https://github.com/Supervisor/supervisor/issues/179>enable
supervisor to restart celery with a HUP and keep track of it?
For now, I'll avoid HUP and use supervisor directly to restart celery :)
Cheers