expire old presences

This commit is contained in:
Devin Zuczek
2026-07-13 18:13:18 -04:00
parent 4860875cc7
commit c555f896a9
4 changed files with 97 additions and 4 deletions
+7
View File
@@ -15,6 +15,13 @@
"database_id": "local"
}
],
// Presence sweep. Rows expire on their own TTL (15m) and reads already ignore
// expired ones, so this is housekeeping: it purges them and recomputes the
// fullness of the instances the departed players were in (a crashed player never
// matchmakes out, so nothing else notices they left). Every 5 minutes.
"triggers": {
"crons": ["*/5 * * * *"]
},
"logpush": false,
// Shared Secrets Store holding the HS256 JWT signing key. Every worker binds the
// same store as JWT_SECRET so tokens signed by `auth` verify here. The "local"