comms: prune stale guests after 14 days

This commit is contained in:
Brad Stein 2026-01-17 17:30:07 -03:00
parent 1293ffe0a5
commit f9830c6678

View File

@ -123,7 +123,7 @@ spec:
SEEDER_USER = os.environ["SEEDER_USER"] SEEDER_USER = os.environ["SEEDER_USER"]
ROOM_ALIAS = "#othrys:live.bstein.dev" ROOM_ALIAS = "#othrys:live.bstein.dev"
SERVER_NAME = "live.bstein.dev" SERVER_NAME = "live.bstein.dev"
STALE_GUEST_MS = 7 * 24 * 60 * 60 * 1000 STALE_GUEST_MS = 14 * 24 * 60 * 60 * 1000
def mas_admin_token(): def mas_admin_token():
with open(MAS_ADMIN_CLIENT_SECRET_FILE, "r", encoding="utf-8") as f: with open(MAS_ADMIN_CLIENT_SECRET_FILE, "r", encoding="utf-8") as f:
@ -466,4 +466,3 @@ spec:
finally: finally:
mas_revoke_session(admin_token, seeder_session) mas_revoke_session(admin_token, seeder_session)
PY PY