From 7c89dd57957b9c7790178b48c04bc16d852b1e7e Mon Sep 17 00:00:00 2001 From: Luke Rohenaz Date: Thu, 17 Sep 2026 11:24:57 -0400 Subject: [PATCH] OPL-4927: Slow the P2P and presence cleanup crons to 30 minutes Readers already filter by expiresAt, so the sweeps only need to keep the tables from growing. Also excludes git worktrees from Biome so lint runs. --- biome.json | 1 + convex/crons.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/biome.json b/biome.json index c02360f..f144d0a 100644 --- a/biome.json +++ b/biome.json @@ -12,6 +12,7 @@ "!!**/convex/_generated", "!!public/download/draco", "!node_modules", + "!!.worktrees", "!.next", "!dist", "!build", diff --git a/convex/crons.ts b/convex/crons.ts index d67d839..949d6ce 100644 --- a/convex/crons.ts +++ b/convex/crons.ts @@ -11,13 +11,13 @@ crons.interval( crons.interval( "expire P2P records and purge terminals after 24 hours", - { minutes: 5 }, + { minutes: 30 }, internal.p2p.deleteExpiredRecords, ); crons.interval( "delete expired signed P2P presence announcements", - { minutes: 5 }, + { minutes: 30 }, internal.presence.deleteExpiredAnnouncements, );