Open
Description
How should restarting Girder worker during deployment function? Sometimes the service may need to be restarted but have running tasks, can a soft restart be accomplished with a specific kill signal?
From @kotfic:
Restarting with TERM signal should ensure all tasks complete before shutting down the worker. See: http://celery.readthedocs.io/en/latest/faq.html#can-i-safely-shut-down-the-worker
If that's the case then this should already be taken care of, systemd defaults to sending SIGTERM to stop a service. What's left is testing that this works when provisioning with running tasks.