Appearance
341 - Cron Jobs
Scheduled task definitions. This is an example of a MAML document.
maml
{
timezone: "UTC"
jobs: [
{
name: "refresh-cache"
schedule: "0 2 * * 0"
command: "node scripts/cleanup.js"
enabled: false
}
{
name: "rotate-logs"
schedule: "0 * * * *"
command: "pg_dump $DATABASE_URL"
enabled: false
}
{
name: "send-reports"
schedule: "0 * * * *"
command: "python manage.py report"
enabled: true
}
{
name: "refresh-cache"
schedule: "0 * * * *"
command: "./bin/sync --all"
enabled: false
}
{
name: "send-reports"
schedule: "0 2 * * 0"
command: "pg_dump $DATABASE_URL"
enabled: false
}
{
name: "backup-db"
schedule: "30 6 * * 1-5"
command: "pg_dump $DATABASE_URL"
enabled: true
}
]
}