Skip to content
Snippets Groups Projects
Commit c87f9182 authored by Sybren A. Stüvel's avatar Sybren A. Stüvel
Browse files

Worker: gracefully handle unreachable manager when signing off

parent b9ff7997
No related branches found
No related tags found
No related merge requests found
......@@ -244,7 +244,10 @@ class FlamencoWorker:
# Let the Manager know we're shutting down
self._log.info('shutdown(): signing off at Manager')
self.loop.run_until_complete(self.manager.post('/sign-off', loop=self.loop))
try:
self.loop.run_until_complete(self.manager.post('/sign-off', loop=self.loop))
except Exception as ex:
self._log.warning('Error signing off. Continuing with shutdown. %s', ex)
self.failures_are_acceptable = False
async def fetch_task(self, delay: float):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment