diff --git a/yapapi/services.py b/yapapi/services.py index 208a74cc6..97c314a2c 100644 --- a/yapapi/services.py +++ b/yapapi/services.py @@ -162,9 +162,8 @@ async def start(self): async def run(self): """Implement the `running` state of the service.""" - while True: - await asyncio.sleep(10) - yield + await asyncio.Future() + yield async def shutdown(self): """Implement the `stopping` state of the service."""