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

Gracefully handle timeout error on May-I-Run task when shutting down

parent 9632b1b2
No related branches found
No related tags found
No related merge requests found
...@@ -173,6 +173,9 @@ def main(): ...@@ -173,6 +173,9 @@ def main():
loop.run_until_complete(asyncio.wait_for(mir_work_task, 5)) loop.run_until_complete(asyncio.wait_for(mir_work_task, 5))
except requests.exceptions.ConnectionError: except requests.exceptions.ConnectionError:
log.warning("Unable to connect to HTTP server, but that's fine as we're shutting down.") log.warning("Unable to connect to HTTP server, but that's fine as we're shutting down.")
except asyncio.TimeoutError:
log.debug("Timeout waiting for may-I-run task, "
"but that's fine as we're shutting down.")
fworker.shutdown() fworker.shutdown()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment