Appearance
557 - Cron Jobs
Scheduled task definitions. This is an example of a MAML document.
maml
{
timezone: "Europe/London"
jobs: [
{
name: "sync-data"
schedule: "0 * * * *"
command: "pg_dump $DATABASE_URL"
enabled: true
}
{
name: "rotate-logs"
schedule: "0 2 * * 0"
command: "python manage.py report"
enabled: true
}
{
name: "rotate-logs"
schedule: "0 * * * *"
command: "./bin/sync --all"
enabled: false
}
{
name: "rotate-logs"
schedule: "*/15 * * * *"
command: "pg_dump $DATABASE_URL"
enabled: true
}
]
}