I'm running a celery worker as a systemd
daemon which serves a lot of long-running agents.
When I restart the worker all the agents hang and stop running new tasks waiting for pending ones.
- Restarting agents is not an acceptable solution for me.
- I'd also avoid using task timeouts
Is there a way to restart the worker gracefully to not impact already running agents?
All the agents are python
scripts.