On Vercel's Hobby plan, legacy Cron Jobs run at most once a day, at any time within the scheduled hour. Vercel Schedules, which is in beta, runs as often as every 15 minutes on Hobby, inside a 15-minute jitter window, with up to 5,000 runs per billing period. If you need runs more often than that, retries when a plain route fails, or calls to a URL outside your deployment, you need Vercel Pro, a Vercel Queues target, or an external scheduler.
The Vercel limits on this page were checked against Vercel's documentation on the date this guide was published. Schedules is in beta, and Vercel says its limits "may change before general availability." Vercel: Schedules limits
Cron Jobs or Schedules?
Vercel now calls Cron Jobs "a legacy feature" that "will be migrated to Schedules in the future." Vercel: Cron Jobs Both are available on all plans. They differ most on Hobby:
| Cron Jobs, Hobby | Schedules, Hobby | Cron Jobs, Pro | Schedules, Pro | |
|---|---|---|---|---|
| Status | Legacy | Beta | Legacy | Beta |
| Most frequent | Once a day | Every 15 minutes | Every minute | Every minute |
| When it runs | Anywhere within the hour | Within a 15-minute jitter window | Within the minute | Within a jitter window of 1 minute by default, up to 15 |
| Run limit | None documented | 5,000 runs per billing period, per team | None documented | None documented |
| How many | 100 per project | 1,000 per team | 100 per project | 10,000 per team |
| Timezone | UTC only | IANA timezone, UTC by default | UTC only | IANA timezone, UTC by default |
| Targets | GET to a path on the production deployment | A private function, a path (POST by default), or a Vercel Queues topic | Same as Hobby | Same as Hobby |
| Retries | None | None for function and path targets; queue targets retry | None | Same as Hobby |
Sources: Cron Jobs usage and pricing, Cron Jobs, Managing Cron Jobs, Schedules limits, Schedules concepts and Schedules targets.
A few details behind the table:
- Hobby Cron Jobs. "Cron jobs can only run once per day." An expression such as
0 * * * *fails the deployment. A job set for0 1 * * *"will trigger anywhere between 1:00 am and 1:59 am." Vercel: Hobby scheduling limits - Hobby Schedules. "Hobby cron schedules can run at most once every 15 minutes," and the jitter window is always 15 minutes. Scheduled and manual runs both count toward the 5,000-run limit. Over the limit, Vercel skips scheduled runs and blocks manual runs and new schedules until the next billing period. Vercel: Hobby limits
- One schedule at the Hobby maximum runs 96 times a day, about 2,880 times in a 30-day month. Two schedules every 15 minutes go over 5,000, because the limit is shared by the whole team.
- Schedules also add execution history, manual runs, and one-time schedules that run once at a set local time. Vercel: Managing schedules Vercel: One-time schedules
Move a cron job to Schedules
Migration is a change to vercel.json. Vercel's example starts with two Cron Jobs:
{ "$schema": "https://openapi.vercel.sh/vercel.json", "crons": [ { "path": "/api/daily-report", "schedule": "0 9 * * *" }, { "path": "/api/cleanup", "schedule": "0 * * * *" } ] } and replaces crons with named schedules:
{ "$schema": "https://openapi.vercel.sh/vercel.json", "schedules": { "daily-report": { "schedule": "0 9 * * *", "path": "/api/daily-report", "requestMethod": "GET" }, "cleanup": { "schedule": "0 * * * *", "path": "/api/cleanup", "requestMethod": "GET" } } } Vercel: Migrate from Cron Jobs
On Hobby, the hourly cleanup entry would fail to deploy as a Cron Job. As a schedule it is allowed, because it runs less often than every 15 minutes.
Three things to get right:
- Keep
GET. "Path schedules send aPOSTrequest by default, but Cron Jobs sendGET." Setting"requestMethod": "GET"means your route handler does not need to change. Vercel: What stays the same - Remove
cronsin the same change. "If you keep both, your route runs twice for each occurrence." - Leave out
timezoneat first. Cron Jobs always run in UTC and schedules default to UTC. If you add atimezonelater, change the cron expression so the job still runs when you expect.
Deploy to production with vercel deploy --prod. Vercel creates the schedules when that deployment becomes your production deployment and stops the Cron Jobs you removed. You can then start one run by hand with Run Schedule in the dashboard or vercel schedules invoke daily-report. Vercel: Deploy and verify
Secure the route with CRON_SECRET
A path target is a public URL, so anyone who finds it can call it. Add an environment variable named CRON_SECRET to the project, with a random value of at least 16 characters. Vercel sends it on every invocation as Authorization: Bearer <CRON_SECRET>, for Cron Jobs and for path schedules. Vercel's Next.js App Router example rejects any other request:
// app/api/cron/route.ts import type { NextRequest } from 'next/server'; export function GET(request: NextRequest) { const authHeader = request.headers.get('authorization'); const cronSecret = process.env.CRON_SECRET; if (!cronSecret || authHeader !== `Bearer ${cronSecret}`) { return new Response('Unauthorized', { status: 401, }); } return Response.json({ success: true }); } Vercel: Securing cron jobs Vercel: Path targets
A deployment keeps the CRON_SECRET value it was built with, so a new value takes effect only after the next deployment. Function and queue targets do not receive CRON_SECRET and do not need it: only Vercel's scheduler can invoke a function target, and a queue target publishes a message instead of calling a URL. Vercel: Choosing a target
Two more things that break routes quietly:
- Redirects are not followed. If
trailingSlashredirects/api/cronto/api/cron/, the job never reaches your function. Put the final path invercel.json. Vercel: Cron jobs and redirects - Production only. Cron Jobs run only on production deployments. Static schedules on Preview branches start inactive. Vercel: Troubleshooting Vercel: Static schedules and deployments
Make the job safe to run twice
Neither Cron Jobs nor Schedules promise exactly one run per slot:
- Cron Jobs: "Cron job delivery is best effort," it "can also occasionally invoke the same scheduled run more than once," and Vercel "can trigger a second instance while the first is still running." Vercel: Delivery and idempotency
- Schedules: Vercel "can't rule out a duplicate delivery," and "two runs of the same schedule can overlap." A run that is delivered late can also catch up with several runs in a row. Vercel: Duplicate runs Vercel: Late and missed runs
Write the job so a second run changes nothing. Vercel's own example: "Set user status to active" is safe to repeat, while "Increment user credit by 10" is not. Process whatever is still outstanding since the last successful run, rather than assuming each run covers exactly one slot. If two runs must not overlap, take a lock, for example in Redis, before doing the work. On Schedules, each run carries an execution ID in the ce-id header that stays the same for every delivery of that occurrence, which you can store to skip a repeat. Vercel: Request headers
When Schedules on Hobby is not enough
| You need | Vercel Pro | Schedules with a Queues target | External scheduler |
|---|---|---|---|
| Runs more often than every 15 minutes | Yes, every minute | No, same Hobby limits | Yes |
| More than 5,000 runs a month | Yes, no run limit documented | No, same Hobby limits | Yes, within its own limits |
| Retries when the route fails | Only with a queue target | Yes, in a queue consumer you write | Depends on the service |
| A call to a URL outside your deployment | Your function makes the call | Your consumer makes the call | Yes |
| Not hosting on Vercel | No | No | Yes |
Vercel Pro removes the 15-minute floor and the 5,000-run limit. It does not add retries: function and path targets are still not retried on any plan. Vercel: Retries
A Vercel Queues target is how Vercel retries a schedule. "If a failed run must be retried, target a queue topic." The schedule publishes a message, and a consumer function that you write processes it. Queues delivers at least once and retries a failed message until it expires or reaches the consumer's maxDeliveries. There is no built-in dead-letter queue. Queues is also in beta, and its usage is billed separately. Vercel: Queue targets Vercel: Queues retries Vercel: Queues pricing
An external scheduler calls your route over HTTPS with the CRON_SECRET header, on whatever timing it supports. Your route stays a normal public route, protected by the secret. Free options:
- cron-job.org is free. A job can run every minute, use
GETorPOST, send custom headers such asAuthorization, and email you when it fails. Its FAQ gives a 30-second timeout and keeps the last 50 executions. Its documentation does not describe automatic retries. - Cloudflare Workers Cron Triggers run a Worker on a cron in UTC. The Workers Free plan allows 5 cron triggers per account. You write the
fetchto your Vercel route, and any retry or logging, in the Worker.
Call the Vercel route from Stormedo
Stormedo is our product. A Stormedo schedule sends an HTTPS request to any public URL on a cron, in an IANA timezone, or on a fixed interval from 60 seconds. If your route returns a 5xx, 408 or 429, or does not answer within 50 seconds, Stormedo retries that occurrence with backoff, and request history keeps every attempt with its status code. Recurring schedules API Retryable outcomes
Stormedo schedules always send POST, so export the same handler for POST in the route file above:
// app/api/cron/route.ts export const POST = GET; Then create a schedule that calls your production URL every 5 minutes with the CRON_SECRET header. Replace your-app.example with your domain, and use the exact URL your route answers on, because Stormedo does not follow redirects either. Destination request contract
curl --request POST 'https://api.stormedo.com/schedules' \ --header "Authorization: Bearer $STORMEDO_TOKEN" \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: vercel-cron-every-5-minutes' \ --data @- <<EOF { "name": "Vercel cron every 5 minutes", "timing": {"type": "cron", "expression": "*/5 * * * *", "timezone": "UTC"}, "request": { "url": "https://your-app.example/api/cron", "headers": {"Authorization": "Bearer $CRON_SECRET"}, "retry": {"max_attempts": 4} } } EOF STORMEDO_TOKEN is a project API key, and the unquoted EOF lets the shell fill in $CRON_SECRET. Expect 201 Created with the schedule's sch_ ID and next_run_at. You can create the same schedule in the dashboard under Recurring, or with the JavaScript or Python SDK. Schedule recurring requests
Each occurrence counts as one request and retries are free. Free includes 3 schedules and 30,000 requests a month, so every 5 minutes (about 8,640) or every 2 minutes (about 21,600) fits; every minute (about 43,200) needs Pro. The full guide covers attempt limits for frequent schedules, the 50-second timeout, and deduplicating retries.
If you keep the Vercel schedule for the same route, the job runs once from each. Remove one of them.
FAQ
Can a Vercel cron job run every minute on the Hobby plan?
No. Legacy Cron Jobs on Hobby run at most once a day, and Schedules on Hobby run at most every 15 minutes. Every minute needs Vercel Pro or an external scheduler that calls your route.
Why does my Vercel cron job run at a different time each day?
On Hobby, a Cron Job can run at any point within its scheduled hour, so 0 1 * * * runs between 1:00 and 1:59 UTC. Schedules on Hobby narrow that to a 15-minute jitter window. Cron Jobs always use UTC; Schedules accept an IANA timezone.
Does Vercel retry a failed cron job?
No. "Vercel will not retry an invocation if a cron job fails." Schedules do not retry function or path targets either. Only a schedule that targets a Vercel Queues topic is retried, through the queue. Vercel: Cron job error handling
Do I still need CRON_SECRET after moving to Schedules?
Yes, for path targets. Vercel sends it the same way as before. Function and queue targets do not use it.
Will my job run twice after migrating?
It will if vercel.json still has the crons entry next to the new schedules entry. Remove crons in the same deploy. Duplicate deliveries can still happen occasionally on both, so make the job safe to run twice.
This post first appeared on the Stormedo guides.
![Locomotion Balance and Motion Control — Ch.09: Recovery Control [KR]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F21qb16tp5r9i8uibgad5.png)