feat: fix

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

View File

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