Skip to content

Commit

Permalink
Session Lifespan (#260)
Browse files Browse the repository at this point in the history
* Add session cleanup + rename daemon run

* sub ref

* Adapt new run

* Submodule merge

---------

Co-authored-by: JWittmeyer <[email protected]>
  • Loading branch information
anmarhindi and JWittmeyer authored Oct 16, 2024
1 parent 2b20c2f commit 597c943
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
)
from util import security, clean_up
from middleware import log_storage
from submodules.model import session

logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -153,4 +154,5 @@
clean_up.clean_up_database()
clean_up.clean_up_disk()

session.start_session_cleanup_thread()
log_storage.start_persist_thread()
2 changes: 1 addition & 1 deletion submodules/model
Submodule model updated 2 files
+8 −2 daemon.py
+29 −0 session.py

0 comments on commit 597c943

Please sign in to comment.