Skip to content

Commit

Permalink
refactor(update-server): Busy-sleep for 10s instead of 1h (#10706)
Browse files Browse the repository at this point in the history
Addresses review comment:
#10706 (comment)
  • Loading branch information
SyntaxColoring committed Jun 9, 2022
1 parent fc40a21 commit 0d73aba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update-server/otupdate/common/run_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

0 comments on commit 0d73aba

Please sign in to comment.