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

Worker: better place logging + final warning when shut down

parent 0c176d45
No related branches found
No related tags found
No related merge requests found
......@@ -107,8 +107,6 @@ def main():
except:
log.exception('Uncaught exception!')
log.warning('Closing asyncio loop')
# Report on the asyncio task status
if args.verbose:
all_tasks = asyncio.Task.all_tasks()
......@@ -140,7 +138,9 @@ def main():
# for ref in gc.get_referrers(task):
# log.info(' - referred by %s', ref)
log.warning('Closing asyncio loop')
loop.close()
log.warning('Flamenco Worker is shut down')
def construct_asyncio_loop() -> asyncio.AbstractEventLoop:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment