This chapter covers the core features and capabilities of Job Scheduler.
Follow this guide to get Job Scheduler up and running in your environment.
# Run scheduler in continuous mode
python src/job_scheduler.py --config examples/jobs_config.json
# Run all jobs once (for testing)
python src/job_scheduler.py --config examples/jobs_config.json --run-once
# List all configured jobs
python src/job_scheduler.py --config examples/jobs_config.json --list{
"jobs": [
{
"name": "my-job",
"schedule": "0 */2 * * *",
"command": "python my_script.py",
"enabled": true,
"max_retries": 3,
"retry_delay": 10,
"timeout": 300,
"depends_on": ["other-job"],
"env": {"MY_VAR": "value"},
"on_failure": "curl https://hooks.example.com/alert"
}
]
}| Field | Type | Default | Description |
|---|---|---|---|
name | string | required | Unique job identifier |
schedule | string | "* * * * *" | Cron expression (min hour dom month dow) |
command | string | required | Shell command to execute |
enabled | bool | true | Whether the job is active |
max_retries | int | 3 | Retry attempts on failure |
retry_delay | float | 5 | Base delay between retries (seconds) |
timeout | int | 300 | Max execution time (seconds) |
depends_on | list | [] | Job names that must succeed first |
env | dict | {} | Extra environment variables |
on_failure | string | "" | Command to run when all retries fail |
Get the full Job Scheduler and unlock everything.
Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.
Access all interactive tools with complete data, all workload profiles, and the full scenario library.
Downloadable source code, configuration files, and working examples from every chapter.
Free updates for life. Every new chapter, tool, and improvement included.