Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

Guestbook daemon: auto-roll every 30 min (was 15)

nyblnet008fdc04c274
diff --git a/server/guestbook-daemon/wrangler.toml b/server/guestbook-daemon/wrangler.toml
index c5cc25b1..e8eeece7 100644
--- a/server/guestbook-daemon/wrangler.toml
+++ b/server/guestbook-daemon/wrangler.toml
@@ -10,11 +10,11 @@ routes = [
{ pattern = "bento.page/guestbook-admin/*", zone_name = "bento.page" },
]
-# Archivist snapshot + (if due) epoch roll. LAUNCH PHASE: every 15 min so the
+# Archivist snapshot + (if due) epoch roll. LAUNCH PHASE: every 30 min so the
# room time-shards under load and spam auto-clears. Revert to ["0 1 * * *"]
# (daily) after launch. Cron is UTC.
[triggers]
-crons = ["*/15 * * * *"]
+crons = ["*/30 * * * *"]
[[kv_namespaces]]
binding = "STORE"
@@ -29,11 +29,11 @@ ORIGIN_FALLBACK = "https://nyblnet.github.io/bento-site"
SYNC_HOST = "wss://sync.bento.page"
# automatic roll cadence in hours; 0 = manual rolls only (admin endpoint).
# The scheduled handler can only roll as often as the cron above fires, so this
-# must be ≤ the cron interval to take effect. LAUNCH PHASE: 0.25 = every 15 min
-# (matches the */15 cron) to time-shard the room and auto-clear spam. Revert to
+# must be ≤ the cron interval to take effect. LAUNCH PHASE: 0.5 = every 30 min
+# (matches the */30 cron) to time-shard the room and auto-clear spam. Revert to
# "0" (manual) after launch — and re-arm a v2 owner-moderated epoch locally
# (build-guestbook + seed) to restore People→Remove moderation.
-ROLL_HOURS = "0.25"
+ROLL_HOURS = "0.5"
# secrets (set with `npx wrangler secret put ADMIN_KEY`):
# ADMIN_KEY — bearer for /guestbook-admin/*