From 30aa380c2481483bc61ce18939ee0e1476d562a7 Mon Sep 17 00:00:00 2001 From: Taras Terletskyi <888784+tropicoo@users.noreply.github.com> Date: Sat, 18 Nov 2023 18:39:24 +0200 Subject: [PATCH] Fix worker --- app_worker/worker/core/launcher.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app_worker/worker/core/launcher.py b/app_worker/worker/core/launcher.py index 8c83430..8783341 100644 --- a/app_worker/worker/core/launcher.py +++ b/app_worker/worker/core/launcher.py @@ -29,7 +29,8 @@ class WorkerLauncher: await self._run_forever() async def _run_forever(self) -> None: - await asyncio.sleep(self._RUN_FOREVER_SLEEP_SECONDS) + while True: + await asyncio.sleep(self._RUN_FOREVER_SLEEP_SECONDS) async def _perform_setup(self) -> None: await asyncio.gather(