Skip to content

Commit dc41094

Browse files
authored
session thread for cleanup (#82)
* session thread for cleanup * Submodule merge
1 parent 759a5ef commit dc41094

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

app.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from submodules.model.business_objects import general
66
import util
77
import config_handler
8+
from submodules.model import session
89

910
app = FastAPI()
1011

@@ -100,3 +101,5 @@ def update_versions_to_newest() -> responses.PlainTextResponse:
100101
util.update_versions_to_newest()
101102
general.remove_and_refresh_session(session_token)
102103
return responses.PlainTextResponse(status_code=status.HTTP_200_OK)
104+
105+
session.start_session_cleanup_thread()

0 commit comments

Comments
 (0)