Vercel Cron Jobs in 2026: Limits, CRON_SECRET, Schedules
Vercel cron jobs explained: vercel.json setup, Hobby vs Pro limits, CRON_SECRET, why failed runs never retry, and the Schedules beta that replaces them.
Vercel cron jobs are scheduled GET requests to a path on your production deployment, declared in vercel.json and always in UTC. Hobby runs once a day within the hour; Pro runs per minute. Vercel never retries a failed run, and Cron Jobs are now legacy: Vercel Schedules (beta) adds timezones, one-time runs and queue retries.
Vercel cron jobs are scheduled HTTP GET requests that Vercel sends to a path on your production deployment, following a cron expression you declare in vercel.json. They are included on every plan, always run in UTC, and on Hobby they can fire only once per day, somewhere inside the hour you picked. Pro and Enterprise get per-minute schedules.
Two things catch most teams out. Vercel does not retry a failed cron invocation, and delivery is best effort, so a run can be missed or arrive twice. And the Vercel docs now label Cron Jobs a legacy feature: Vercel Schedules (in beta) replaces them with timezones, one-time runs and queue targets that do retry. If the job you are scheduling is publishing posts, read this together with our job queue architecture for scheduled posts, because a single cron route is only the trigger, not the scheduler.
PostGate handles OAuth, publishing and delivery evidence for every network through one API. Start free or read the docs.
How do Vercel cron jobs work?
You add a crons array to vercel.json. Each entry has a path (it must start with /) and a schedule in standard five-field cron syntax. When you deploy to production, the build registers the jobs, and from then on Vercel calls the path on schedule.
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"crons": [
{ "path": "/api/cron/publish-due", "schedule": "*/5 * * * *" },
{ "path": "/api/cron/cleanup", "schedule": "0 3 * * *" }
]
}
The route itself is an ordinary Vercel Function. In the Next.js App Router that is a GET handler in app/api/cron/publish-due/route.ts. A few details from the Vercel cron jobs documentation matter in practice:
- Every invocation carries the user agent
vercel-cron/1.0and anx-vercel-cron-scheduleheader with the expression that fired. Two jobs can share one path and branch on that header. - Jobs run only for the production deployment. Preview deployments never get cron invocations.
- The timezone is always UTC. A job meant for 9:00 in New York needs
0 14 * * *in winter and0 13 * * *in summer, or a move to Schedules. - Named values like
MONorJANare not supported, and you cannot set both day of month and day of week in the same expression. - Cron invocations do not follow redirects, and a missing path still “runs” and just returns 404.
To change or delete a job you edit vercel.json and redeploy. The dashboard only lets you disable all cron jobs of a project at once.
Vercel cron job limits by plan
The numbers below come from Vercel’s usage and pricing page for cron jobs.
| Plan | Cron jobs per project | Minimum interval | Timing precision |
|---|---|---|---|
| Hobby | 100 | Once per day | Anywhere within the scheduled hour |
| Pro | 100 | Once per minute | Within the scheduled minute |
| Enterprise | 100 | Once per minute | Within the scheduled minute |
On Hobby, an expression that would fire more than once a day (0 * * * *, */30 * * * *) fails the deployment with “Hobby accounts are limited to daily cron jobs.” Disabled jobs still count toward the 100.
There is no separate price for cron jobs. Each run is a function invocation, so it is billed and limited like any other function call, and the run can last as long as your function’s maxDuration allows. Work that does not fit in one invocation has to be split into smaller batches.
How do you secure a Vercel cron route with CRON_SECRET?
A cron path is a public URL. Anyone who guesses /api/cron/publish-due can trigger it. The fix Vercel documents is an environment variable called CRON_SECRET (a random string of 16 or more characters). When it exists, Vercel sends it as Authorization: Bearer <secret> on every cron call, and your handler compares the two:
// app/api/cron/publish-due/route.ts
export const dynamic = 'force-dynamic';
export async function GET(request: Request) {
const secret = process.env.CRON_SECRET;
if (!secret || request.headers.get('authorization') !== `Bearer ${secret}`) {
return new Response('Unauthorized', { status: 401 });
}
// do the scheduled work here
return Response.json({ ok: true });
}
The part people miss is when the secret takes effect. A deployment captures CRON_SECRET at build time and keeps that copy for its lifetime. Editing the variable changes nothing until the next production deployment, and an Instant Rollback puts the older secret back together with the older cron definitions. If every invocation starts returning 401 after a rotation, check that the deployment serving production was built after your edit and that the value has no trailing space or line break from the paste.
Why didn’t my Vercel cron job run?
Most “my cron never fired” reports trace back to one of these causes, all listed in the Managing Cron Jobs guide:
| Symptom | Likely cause | Fix |
|---|---|---|
| Nothing happens on a preview URL | Cron only runs on production | Call the route by hand on preview, check runs on production |
| Runs at 9:40 instead of 9:00 | Hobby fires anywhere in the hour | Accept it, upgrade, or move to Schedules |
| Every call returns 401 | CRON_SECRET mismatch or missing in Production |
Redeploy after editing, clean the value |
| Job “runs” but no logs | The route returned a redirect or a cached response | Remove the redirect (often trailingSlash), add dynamic = 'force-dynamic' |
| Blocked before the function | A WAF custom rule matches the cron request | Exclude the cron path from deny or challenge rules |
| Job missing from the Cron Jobs tab | Build did not register it | Run vercel build --prod and look for crons in .vercel/output/config.json |
Two behaviors are by design and no setting fixes them. Vercel does not retry a failed run. And delivery is best effort: a transient network error can skip a run without leaving any log, and the same run can occasionally be delivered twice. If a run takes longer than the interval, the next one starts anyway and both overlap.
Vercel cron jobs vs Vercel Schedules
Every cron page in the Vercel docs now opens with the same notice: Cron Jobs are a legacy feature and will be migrated to Schedules. Vercel Schedules is in beta on all plans and covers the gaps above.
| Cron Jobs | Schedules (beta) | |
|---|---|---|
| Target | GET to a public path | GET or POST to a path, a private function, or a queue topic |
| Timezone | UTC only | Any IANA timezone per schedule |
| One-time runs | No | Yes, created at runtime |
| Create from your app | No | Yes, with @vercel/schedules or the CLI |
| Pause or run now | Disable all jobs of the project | Per schedule, no redeploy |
| Environments | Production only | Production, Preview branches, custom environments |
| Retries | None | Only for queue targets |
| Hobby frequency | Once per day | Every 15 minutes, 15-minute jitter |
Migration is a config change. Rename crons to a schedules object keyed by name and keep your route as it is. Schedules send POST by default, so set requestMethod to GET, and remove the old crons entries in the same deploy or the route runs twice:
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"schedules": {
"publish-due": {
"schedule": "*/5 * * * *",
"path": "/api/cron/publish-due",
"requestMethod": "GET"
}
}
}
The user agent, the x-vercel-cron-schedule header and the CRON_SECRET check keep working. Check the Schedules limits before you rely on it, since beta limits may change: Hobby gets 1,000 schedules per team, 500 dynamic schedules and 5,000 runs per billing period, and when a run limit is exceeded Vercel skips scheduled runs until the next period. Pro allows 10,000 schedules per team with a 1-minute default jitter.
Can you build a social post scheduler on Vercel cron?
You can, as long as the cron route is only the alarm clock. The pattern that holds up is a polling job: a cron (or schedule) fires every minute or five, the route claims the posts whose run_at has passed, and publishes them. The claim has to be atomic so two overlapping runs never take the same row:
UPDATE scheduled_posts
SET status = 'claimed', claimed_until = now() + interval '2 minutes'
WHERE id IN (
SELECT id FROM scheduled_posts
WHERE status = 'due' AND run_at <= now()
ORDER BY run_at
LIMIT 25
FOR UPDATE SKIP LOCKED
)
RETURNING id, payload;
Then handle what Vercel’s own docs warn about. A missed run is fine if each run processes everything overdue, not only what is due this minute. A duplicate run is fine if every publish call carries an idempotency key derived from the post ID. And a run that dies halfway needs a lease that expires, so the next run picks those posts up again. Our guide on how social media schedulers work walks through the full delivery side, from token refresh to per-network status.
Two limits shape the design. On Hobby, legacy cron fires once a day, which is useless for posts; Schedules can do every 15 minutes, still too coarse for “publish at 9:00”. And neither path nor function targets retry, so if a failed publish must be retried, Vercel’s answer is a queue topic. At that point many teams move the queue out of the function entirely: node-cron on a long-running server, or a real job queue compared in BullMQ vs RabbitMQ.
There is a shorter route when the job is publishing itself. PostGate takes the post with a scheduled_at time and an IANA timezone, and an Idempotency-Key makes a retried request safe for 72 hours, so the timing, the retries and the per-network delivery status live in the PostGate scheduling API instead of in your cron route. Your Vercel app sends the post once and listens for the delivery webhook.
Frequently asked questions
Are Vercel cron jobs free?
Yes, cron jobs are included on all plans, including Hobby. Each run is a function invocation, so it counts toward your function usage and limits like any other request.
Can Vercel cron jobs run every minute on the Hobby plan?
No. Legacy Hobby cron jobs run at most once per day, and the exact time can land anywhere within the hour you set. Vercel Schedules on Hobby can run every 15 minutes, within a 15-minute jitter window.
What timezone do Vercel cron jobs use?
Always UTC, with no way to change it. If you need a schedule that follows a local timezone and daylight saving time, Vercel Schedules accepts any IANA timezone per schedule.
Does Vercel retry a failed cron job?
No. If the function throws, returns an error or times out, that run is gone, and you see it only in the logs. Vercel Schedules retries only when the target is a queue topic.
Do Vercel cron jobs run on preview deployments?
No, Cron Jobs run only for the production deployment. Schedules can run in Preview branches, but new static schedules start inactive there until you enable them.
