mirror of
https://github.com/djdevin/recflare.git
synced 2026-10-27 16:08:58 -07:00
[rooms] clean up old invites/votes
This commit is contained in:
@@ -106,7 +106,7 @@ export default {
|
||||
return services[resolved.name].fetch(resolved.request, env, ctx)
|
||||
},
|
||||
|
||||
// `match` (presence sweep) and `rooms` (stale vote-to-kick ballots) each run a
|
||||
// `match` (presence sweep) and `rooms` (stale ballots, expired invites) each run a
|
||||
// `*/5 * * * *` cron in the split deployment; this worker's one trigger fires both.
|
||||
// Each schedules its work on `ctx.waitUntil`, so the runtime waits for both.
|
||||
scheduled(
|
||||
|
||||
@@ -45,8 +45,8 @@
|
||||
"bindings": [{ "name": "RECFLARE_NOTIFICATIONS_HUB", "class_name": "NotificationsHub" }]
|
||||
},
|
||||
"migrations": [{ "tag": "v1", "new_sqlite_classes": ["NotificationsHub"] }],
|
||||
// Presence sweep (owned by match) and the stale vote-to-kick ballot sweep (owned by
|
||||
// rooms) — both `*/5 * * * *`, so one trigger fires both. Every 5 minutes.
|
||||
// Presence sweep (owned by match) and the stale ballot / expired invite sweep (owned
|
||||
// by rooms) — both `*/5 * * * *`, so one trigger fires both. Every 5 minutes.
|
||||
"triggers": {
|
||||
"crons": ["*/5 * * * *"]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user