Contents

Chapter 1

Features

This chapter covers the core features and capabilities of Job Scheduler.

Features

  • Cron expressions — Standard 5-field cron syntax with ranges, steps, and lists
  • Retry with backoff — Configurable retries with linear backoff on failures
  • Dependency chains — Jobs can depend on other jobs completing successfully
  • Execution logging — Structured logs with timestamps, duration, exit codes
  • Health monitoring — JSON health file for external monitoring tools
  • Failure hooks — Run custom commands (alerts, webhooks) when jobs fail
  • Timeout protection — Kill hung jobs after a configurable timeout
  • Environment variables — Pass custom env vars to each job
  • Run-once mode — Execute all jobs once for testing, then exit

Requirements

  • Python 3.10+
  • No external dependencies (stdlib only)
Chapter 2

Quick Start

Follow this guide to get Job Scheduler up and running in your environment.

Quick Start

bash
# 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

Configuration Reference

json
{
    "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"
        }
    ]
}
FieldTypeDefaultDescription
namestringrequiredUnique job identifier
schedulestring"* * * * *"Cron expression (min hour dom month dow)
commandstringrequiredShell command to execute
enabledbooltrueWhether the job is active
max_retriesint3Retry attempts on failure
retry_delayfloat5Base delay between retries (seconds)
timeoutint300Max execution time (seconds)
depends_onlist[]Job names that must succeed first
envdict{}Extra environment variables
on_failurestring""Command to run when all retries fail
Chapter 3
🔒 Available in full product

Cron Syntax

You’ve reached the end of the free preview

Get the full Job Scheduler and unlock everything.

All Chapters

Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.

Full Tool Suite

Access all interactive tools with complete data, all workload profiles, and the full scenario library.

Source Files

Downloadable source code, configuration files, and working examples from every chapter.

Lifetime Updates

Free updates for life. Every new chapter, tool, and improvement included.

Buy Now — $19 →
📦 Free sample included — download another copy for the full product.
Job Scheduler v1.0.0 — Free Preview