Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
wtf: vercel cron (#1464)
Maximilian Kaskedbbcca425b47
diff --git a/apps/web/vercel.json b/apps/web/vercel.jsonindex e8e668b86..e317722fd 100644--- a/apps/web/vercel.json+++ b/apps/web/vercel.json@@ -1,29 +1,5 @@{"crons": [- {- "path": "/api/checker/cron/30s",- "schedule": "* * * * *"- },- {- "path": "/api/checker/cron/1m",- "schedule": "* * * * *"- },- {- "path": "/api/checker/cron/5m",- "schedule": "*/5 * * * *"- },- {- "path": "/api/checker/cron/10m",- "schedule": "*/10 * * * *"- },- {- "path": "/api/checker/cron/30m",- "schedule": "*/30 * * * *"- },- {- "path": "/api/checker/cron/1h",- "schedule": "0 * * * *"- },{"path": "/api/internal/email","schedule": "00 17 * * *"diff --git a/apps/workflows/src/cron/checker.ts b/apps/workflows/src/cron/checker.tsindex 0940b21fd..8b4f2edaf 100644--- a/apps/workflows/src/cron/checker.ts+++ b/apps/workflows/src/cron/checker.ts@@ -30,21 +30,18 @@ export const isAuthorizedDomain = (url: string) => {const channelOptions = {// Conservative 5-minute keepalive (gRPC best practice)- 'grpc.keepalive_time_ms': 300000,+ "grpc.keepalive_time_ms": 300000,// 5-second timeout sufficient for ping response- 'grpc.keepalive_timeout_ms': 5000,+ "grpc.keepalive_timeout_ms": 5000,// Disable pings without active calls to avoid server conflicts- 'grpc.keepalive_permit_without_calls': 1,+ "grpc.keepalive_permit_without_calls": 1,};-export async function sendCheckerTasks(periodicity: z.infer<typeof monitorPeriodicitySchema>,) {--const client = new CloudTasksClient({- fallback:"rest",+ fallback: "rest",channelOptions,projectId: env().GCP_PROJECT_ID,credentials: {@@ -159,10 +156,9 @@ export async function sendCheckerTasks(const success = allRequests.filter((r) => r.status === "fulfilled").length;const failed = allRequests.filter((r) => r.status === "rejected").length;- const failedRequest = allRequests.filter((r) => r.status === "rejected")-+ const failedRequest = allRequests.filter((r) => r.status === "rejected");- console.log(failedRequest?.at(0))+ console.log(failedRequest?.at(0));console.log(`End cron for ${periodicity} with ${allResult.length} jobs with ${success} success and ${failed} failed`,);