From 0d73abacb52a034fd057f9e08ef74a6e6d44643d Mon Sep 17 00:00:00 2001 From: Max Marrone Date: Thu, 9 Jun 2022 17:20:02 -0400 Subject: [PATCH] refactor(update-server): Busy-sleep for 10s instead of 1h (#10706) Addresses review comment: https://github.com/Opentrons/opentrons/pull/10706#discussion_r893915850 --- update-server/otupdate/common/run_application.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-server/otupdate/common/run_application.py b/update-server/otupdate/common/run_application.py index 393372d6b84..18a0cf03d74 100644 --- a/update-server/otupdate/common/run_application.py +++ b/update-server/otupdate/common/run_application.py @@ -31,7 +31,7 @@ async def run_and_notify_up(app: web.Application, host: str, port: int) -> NoRet # It seems like there should be a better way of doing this, # but this is what the docs recommend. # https://docs.aiohttp.org/en/stable/web_advanced.html#application-runners - await asyncio.sleep(3600) + await asyncio.sleep(10) finally: await runner.cleanup() # type: ignore[no-untyped-call]