See how your cron jobs ran, and when they run next
Cron jobs, a new page in each project's sidebar, lists every job the deployment being served declares. Whether a job ran, and how your app answered it, no longer takes a search through the logs:
- Path and Schedule, as declared.
- Last run: HTTP and the status your app answered with, or No response when the call failed or was given up on.
- Next run. A schedule that never comes round, such as the 30th of February, says Never.
The times of runs are in your time zone; schedules stay in UTC, as they are written. While the project is not being served, the page says Cron jobs are paused. Once it is served again, a job that came due meanwhile is called once, late, and then runs on its schedule. Only production runs jobs: a preview deployment registers none. See Check the jobs.
Cron jobs on Arkor
Declare jobs in a vercel.json at the root of your app, as on Vercel. An app that already declares
them there needs no change:
{
"crons": [{ "path": "/api/cron/cleanup", "schedule": "0 3 * * *" }]
}If your app also has an upwind.config.ts, upwind.jsonc or upwind.json, or an arkor.config.ts,
arkor.jsonc or arkor.json from before those names, the jobs are read from the first of them, in
that order, and not from vercel.json.
The jobs take effect when the deployment that declares them is published. Add a CRON_SECRET
environment variable and deploy, and each call carries it as a bearer token for your route to
check. See Cron jobs.