skills/render-cron-jobs/SKILL.md
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 skillsauth add render-oss/skills render-cron-jobsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill covers Cron Job services on Render: how schedules run, what the platform guarantees, and how they differ from workers and workflows. Pair it with Blueprint and deploy skills when authoring render.yaml or Dashboard settings.
type: cron, schedule, and commandsExpression cheat sheets, framework startCommand examples, and Heroku Scheduler migration mapping live under references/.
| 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 |
Cron services use type: cron with a schedule and the usual build/start and env wiring:
services:
- 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: connectionString
schedule: standard five-field cron (minute hour day-of-month month day-of-week), UTC.buildCommand / startCommand: same roles as other non-Docker services; Docker images use image + start command as configured for image-backed crons.envVars: same patterns as web services and workers (secrets, linked databases, etc.).YAML note: the schedule value must be quoted so characters like * are not parsed as YAML aliases or flow syntax.
| Topic | File |
|--------|------|
| Expression examples, framework commands, errors, env vars | references/cron-patterns.md |
| Heroku Scheduler → Render mapping, blueprint example | references/migration-from-scheduler.md |
render.yaml schema, previews, common mistakesdevelopment
Configures Render web services—port binding, TLS, health checks, custom domains, auto-deploy, PR previews, persistent disks, and deploy lifecycle. Use when the user needs to set up a web service, fix health check failures, add a custom domain, configure zero-downtime deploys, or troubleshoot port binding issues.
development
Deploys and configures static sites on Render's global CDN—build commands, publish paths, SPA routing, redirects, custom headers, and PR previews. Use when the user needs to deploy a static site, set up a React/Vue/Hugo/Gatsby frontend, configure SPA fallback routing, add redirect rules, customize response headers, or choose between a static site and a web service for their frontend. Trigger terms: static site, CDN, SPA, single-page app, React deploy, Vue deploy, Hugo, Gatsby, Docusaurus, Jekyll, staticPublishPath.
tools
Scales Render services—configures autoscaling targets, chooses instance types, sets manual instance counts, and optimizes cost. Use when the user needs to handle more traffic, set up autoscaling, pick the right instance type, reduce costs, or troubleshoot scaling behavior like slow scale-down or stuck instances.
development
Configures Render private services—internal-only apps that accept traffic exclusively from other Render services over the private network. Use when the user needs an internal API, microservice, gRPC server, sidecar, or any service that should not be publicly accessible. Also use when choosing between a private service and a background worker. Trigger terms: private service, pserv, internal service, internal API, microservice, gRPC, not public, private network service.