Capabilities
Crons
Schedule recurring jobs directly from your application.
Use Procfile cron processes to schedule recurring commands for server applications.
Features
- Define cron jobs in your root
Procfile. - Managed scheduling infrastructure.
- Standard five-field cron expressions.
Defining Cron Jobs
Define each scheduled command with a process name that starts with cron-, a quoted SCHEDULE value, and the command to run.
Listing 1 defines a command that synchronizes data every 10 minutes.
cron-sync: SCHEDULE="*/10 * * * *" npm run syncFor naming, schedule, and command requirements, see Procfile cron processes.
Framework Compatibility Matrix
A consolidated view of framework support:
| Capability | Next.js | React Router | Vite SPA | FastAPI |
|---|---|---|---|---|
| Cron Jobs | ✅ Procfile | ✅ Procfile | ❌ | ✅ Procfile |