Skip to content

Commit

Permalink
Project check pipeline pass
Browse files Browse the repository at this point in the history
  • Loading branch information
greenw0lf committed Jan 21, 2025
1 parent 99dd96a commit 37119d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

logger = logging.getLogger(__name__)
shutdown_current_task_done = False
model = None # for mypy to pass


@asynccontextmanager
Expand All @@ -39,6 +40,7 @@ async def lifespan(app: FastAPI):
logger.info("Current task is done. Shutting down...")
del model


api = FastAPI(lifespan=lifespan)


Expand Down

0 comments on commit 37119d3

Please sign in to comment.