Appearance
550 - Cron Jobs
Scheduled task definitions. This is an example of a MAML document.
maml
{
timezone: "America/New_York"
jobs: [
{
name: "backup-db"
schedule: "30 6 * * 1-5"
command: "node scripts/cleanup.js"
enabled: true
}
{
name: "rotate-logs"
schedule: "0 2 * * 0"
command: "pg_dump $DATABASE_URL"
enabled: false
}
{
name: "cleanup-temp"
schedule: "0 2 * * 0"
command: "node scripts/cleanup.js"
enabled: false
}
{
name: "rotate-logs"
schedule: "30 6 * * 1-5"
command: "./bin/sync --all"
enabled: true
}
]
}