Next.js Discord

Discord Forum

Cron jobs are out of controls

Unanswered
Broad-snouted Caiman posted this in #help-forum
Open in Discord
Broad-snouted CaimanOP
Good evening, I'm opening a new topic about crons jobs, which is becoming increasingly problematic.

At the very beginning, the problem was that the cron was launched at each new deployment, whereas the trigger point was only once a month.

By going directly to Vercel, I deactivated the Crons functionality, same problem, I deleted the vercel.json file (which contained the crons config), same problem, it runs at each deployment.

Recently, I added a new api route in the same subfolder:

folder
->route 1 (initially declared in vercel.json)
->route 2 (not declared in anything)

every time I deploy, route 2 is also called up, I don't know what to do, it's all a mess...

I've tried deleting Vercel's deployment cache. Currently the Cron functionality is disabled on Vercel, I push a vercel.json = {}, nothing does my 2 routes are called...

Thank you for reading and for your precious help...

0 Replies