Example 10048

Cron Jobs

Scheduled task definitions.

{
timezone: "America/New_York"
jobs: [
{
name: "backup-db"
schedule: "30 6 * * 1-5"
command: "node scripts/cleanup.js"
enabled: true
}

{
name: "send-reports"
schedule: "*/15 * * * *"
command: "pg_dump $DATABASE_URL"
enabled: false
}

{
name: "backup-db"
schedule: "0 * * * *"
command: "python manage.py report"
enabled: true
}

{
name: "sync-data"
schedule: "0 0 * * *"
command: "pg_dump $DATABASE_URL"
enabled: true
}
]
}

See also