Skip to content

Commit

Permalink
Remove 2nd yield
Browse files Browse the repository at this point in the history
  • Loading branch information
greenw0lf committed Jan 21, 2025
1 parent a3441df commit 99dd96a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion api.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ async def lifespan(app: FastAPI):
# Wait until the task is complete
while not shutdown_current_task_done:
await asyncio.sleep(0.1)
yield
# Clean up
logger.info("Current task is done. Shutting down...")
del model
Expand Down

0 comments on commit 99dd96a

Please sign in to comment.