Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

reduce frequency to */5 * * * *

Steven Tey21d9b912b464
diff --git a/apps/web/app/(ee)/api/cron/webhooks/sync-click-workspaces/route.ts b/apps/web/app/(ee)/api/cron/webhooks/sync-click-workspaces/route.ts
index fcf462e3df..145c4cf96c 100644
--- a/apps/web/app/(ee)/api/cron/webhooks/sync-click-workspaces/route.ts
+++ b/apps/web/app/(ee)/api/cron/webhooks/sync-click-workspaces/route.ts
@@ -9,7 +9,7 @@ export const dynamic = "force-dynamic";
// GET /api/cron/webhooks/sync-click-workspaces
// Rebuild the Redis set of workspaces with active link.clicked webhooks.
-// Runs every 15 minutes (*/15 * * * *)
+// Runs every 5 minutes (*/5 * * * *)
export const GET = withCron(async () => {
const synced = await syncClickWebhookWorkspaceSet();
const deleted = await cleanupRedundantLinkWebhookEntries();
diff --git a/apps/web/vercel.json b/apps/web/vercel.json
index 22ff1d8a99..ab9891b717 100644
--- a/apps/web/vercel.json
+++ b/apps/web/vercel.json
@@ -82,7 +82,7 @@
},
{
"path": "/api/cron/webhooks/sync-click-workspaces",
- "schedule": "*/15 * * * *"
+ "schedule": "*/5 * * * *"
}
],
"functions": {