feat: fix

This commit is contained in:
2025-04-09 15:52:41 +03:00
parent 2730ced37e
commit 978a684278

View File

@@ -29,8 +29,8 @@ async def lifespan(app: FastAPI):
consumer_task = asyncio.create_task(consume_messages()) consumer_task = asyncio.create_task(consume_messages())
yield yield
if producer:
await producer.stop() await producer.stop()
consumer_task.cancel() consumer_task.cancel()