pricewise icon indicating copy to clipboard operation
pricewise copied to clipboard

invalid maxDuration value for Serverless Function "api/cron"

Open bhaskar3009 opened this issue 11 months ago • 3 comments

15:38:35.970 | Error: Builder returned invalid maxDuration value for Serverless Function "api/cron". Serverless Functions must have a maxDuration between 1 and 10 for plan hobby. : https://vercel.com/docs/concepts/limits/overview#serverless-function-execution-timeout

the code is: export const maxDuration = 300; // This function can run for a maximum of 300 seconds but when it sets to 10, and setup cron-job it shows timeout error

bhaskar3009 avatar Mar 15 '24 10:03 bhaskar3009

issue regarding maxDuration

bhaskar3009 avatar Mar 15 '24 10:03 bhaskar3009

were you able to solve this problem, i am also getting the same issue

lodha13 avatar Apr 20 '24 08:04 lodha13

Any solutions?

Jayant-Gahlot avatar Sep 13 '24 23:09 Jayant-Gahlot