Cron Job Not Running
Unanswered
Oriental posted this in #help-forum
OrientalOP
Hi, I am attempting to create a cron job. The cron job I created correctly shows up on my Vercel dashboard. But the cron job does not run at the scheduled time - it does not run at all, even though it says the correct time on the Vercel dashboard. This is my vercel.json file:
And I used Postman to verify that /api/cron works correctly.
{
"crons": [{
"path": "/api/cron",
"schedule": "35 4 * * *"
}]
}And I used Postman to verify that /api/cron works correctly.
1 Reply
@Oriental Hi, I am attempting to create a cron job. The cron job I created correctly shows up on my Vercel dashboard. But the cron job does not run at the scheduled time - it does not run at all, even though it says the correct time on the Vercel dashboard. This is my vercel.json file:
{
"crons": [{
"path": "/api/cron",
"schedule": "35 4 * * *"
}]
}
And I used Postman to verify that /api/cron works correctly.
Spectacled bear
So I had the same issue. It seemed to be an issue with the free plan, but I'm not sure. Take a look at Cloudflare, it was pretty easy to set up.