Cron job failure (executed from external, non Vercel site)

I’m using cron-job.org to do some basic tasks:

  • Fetch information form rss/xml site, send it to OpenAI w/ some prompting, store response in json on Vercel blob storage
  • Clean up said json blobs on a regular basis to avoid file/storage issues

As attached the execution fails with non consistent error codes. Believe this is not on the side of cron-job.org but Vercel issue.

Hi @jayhilwig, thanks for asking this here.

From the image, I can see that all failing requests are close to or more than 10 seconds, which is the limit for Hobby plan. For more details, see Max duration.

On the Pro plan, you can change this value from Settings > Functions > Function Max Duration:

So, if you are using hobby plan you can either optimize your code to finish in less time or upgrade to the Pro plan.

I hope this was helpful.

Thanks Anshuman, this is correct and helpful. So more details (in case anyone else come across this) from my external site showed a response of: FUNCTION_INVOCATION_TIMEOUT which Vercel has a nice doc about here:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.