Skip to content

Commit 80793c9

Browse files
authored
session thread for cleanup (#67)
* session thread for cleanup * Submodule update * Submodule merge
1 parent b42afa3 commit 80793c9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from typing import List, Optional, Dict, Any, Union
55
from neural_search import util
66
from submodules.model.business_objects import general
7+
from submodules.model import session
78

89
app = FastAPI()
910

@@ -246,3 +247,6 @@ def healthcheck() -> responses.PlainTextResponse:
246247
if not text:
247248
text = "OK"
248249
return responses.PlainTextResponse(text, status_code=status_code)
250+
251+
252+
session.start_session_cleanup_thread()

0 commit comments

Comments
 (0)