There was an error while loading. Please reload this page.
1 parent 4a13fd4 commit 5a7075fCopy full SHA for 5a7075f
app/main.py
@@ -11,14 +11,24 @@
11
from app.solver.data.Result import Result
12
from app.solver.solver import distribute
13
14
-version = "v0.5.1"
+version = "v0.5.2"
15
16
app = FastAPI(
17
title="CutSolverBackend",
18
version=version
19
)
20
21
22
+@app.on_event("startup")
23
+async def on_startup():
24
+ print(f"Starting CutSolver v{version}...")
25
+
26
27
+@app.on_event("shutdown")
28
+async def on_shutdown():
29
+ print(f"Shutting down CutSolver...")
30
31
32
# needs to be before CORS!
33
# https://github.com/tiangolo/fastapi/issues/775#issuecomment-592946834
34
async def catch_exceptions_middleware(request: Request, call_next):
0 commit comments