Render cron jobs

From fanfan-de/anybox · View interactive version

Render cron jobs is an AI agent skill from the GitHub repository fanfan-de/anybox. 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. Tri

How to use this skill

Skill file

Render Cron Jobs

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.

When to Use

Expression cheat sheets, framework startCommand examples, and Heroku Scheduler migration mapping live under references/.

Configuration

Constraints

Execution Behavior

Cron vs Worker vs Workflow

| 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 |

Blueprint Configuration

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

YAML note: the schedule value must be quoted so characters like * are not parsed as YAML aliases or flow syntax.

Common Patterns

References

| Topic | File |

|--------|------|

| Expression examples, framework commands, errors, env vars | references/cron-patterns.md |

| Heroku Scheduler → Render mapping, blueprint example | references/migration-from-scheduler.md |

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.