Fixhancement: add automatic clearing of sessions (#14722)

This commit is contained in:
shamoon authored and GitHub committed 2026-11-10 08:09:25 -08:00
1 parent 936b1b3bfa
commit a139bdff46
5 files changed
+80

No files matched your search

+11
View File
@@ -165,6 +165,17 @@ def parse_beat_schedule() -> dict:
"expires": 23.0 * 60.0 * 60.0,
},
},
{
"name": "Clear expired sessions",
"env_key": "PAPERLESS_SESSION_CLEANUP_TASK_CRON",
# Default daily at 03:00
"env_default": "0 3 * * *",
"task": "documents.tasks.clear_expired_sessions",
"options": {
# 1 hour before default schedule sends again
"expires": 23.0 * 60.0 * 60.0,
},
},
]
for task in tasks:
# Either get the environment setting or use the default