Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase maxDuration for geo-event-fetcher to 5 minutes #105

Merged
merged 1 commit into from
Dec 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Increase maxDuration for geo-event-fetcher to 5 minutes
dhakalaashish committed Dec 8, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit f504b6f433d64ea9abb113bad76f1960575d4bc9
2 changes: 1 addition & 1 deletion apps/server/src/pages/api/cron/geo-event-fetcher.ts
Original file line number Diff line number Diff line change
@@ -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