From f504b6f433d64ea9abb113bad76f1960575d4bc9 Mon Sep 17 00:00:00 2001 From: Aashish Dhakal <85501584+dhakalaashish@users.noreply.github.com> Date: Fri, 8 Dec 2023 11:01:55 +0545 Subject: [PATCH] Increase maxDuration for geo-event-fetcher to 5 minutes --- apps/server/src/pages/api/cron/geo-event-fetcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/pages/api/cron/geo-event-fetcher.ts b/apps/server/src/pages/api/cron/geo-event-fetcher.ts index bed52afe1..e50eae51c 100644 --- a/apps/server/src/pages/api/cron/geo-event-fetcher.ts +++ b/apps/server/src/pages/api/cron/geo-event-fetcher.ts @@ -16,7 +16,7 @@ import { type geoEventInterface as GeoEvent } from "../../../Interfaces/GeoEvent // This ensures that the alertFetcher Vercel serverless function runs for a maximum of 300 seconds // 300s is the maximum allowed duration for Vercel pro plans export const config = { - maxDuration: 60, + maxDuration: 300, }; // TODO: Run this cron every 5 minutes