Loading...
Loading...
Configures and troubleshoots scheduled tasks on Render using cron job services. Use when the user needs to run something on a schedule, write a cron expression, set up a periodic job, migrate from Heroku Scheduler, choose between cron jobs and background workers, or fix a cron that isn't firing. Trigger terms: cron job, scheduled task, periodic job, cron expression, schedule, run every, timer, Heroku Scheduler migration.
npx skill4agent add render-oss/skills render-cron-jobsrender.yamltype: cronschedulestartCommandreferences/| Need | Use | Why |
|---|---|---|
| Periodic task under 12h | Cron Job | Scheduled, simple, exits when done |
| Continuous job processing | Background Worker | Always running, polls a queue |
| Periodic but over 12h | Background Worker | No 12h cron run ceiling |
| Scheduled parallel compute | Cron Job + Workflow | Cron triggers workflow runs on a schedule; workflows fan out or orchestrate parallel steps |
type: cronscheduleservices:
- type: cron
name: nightly-cleanup
schedule: "0 * * * *" # hourly at minute 0 — must be quoted in YAML
buildCommand: pip install -r requirements.txt
startCommand: python cleanup.py
envVars:
- key: DATABASE_URL
fromDatabase:
name: my-db
property: connectionStringscheduleminute hour day-of-month month day-of-weekbuildCommandstartCommandenvVarsschedule*| Topic | File |
|---|---|
| Expression examples, framework commands, errors, env vars | |
| Heroku Scheduler → Render mapping, blueprint example | |
render.yaml