Contents

Chapter 1

Features

This chapter covers the core features and capabilities of Cron Job Manager.

Features

  • Cron-style scheduling — Human-readable schedule expressions (e.g., "every 5m", "daily at 09:00")
  • Execution logging — Every run recorded in SQLite with status, duration, and output
  • Failure alerts — Configurable alert commands on job failure
  • Dependency tracking — Jobs can depend on other jobs completing successfully
  • Daemon mode — Run continuously, checking schedules on a configurable tick interval
  • One-shot execution — Run any job immediately from the CLI
  • Job history — Query execution history and statistics per job
  • Configurable via JSON — Define all jobs in a single config file

Requirements

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

Quick Start

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

Quick Start

bash
# Run jobs from a config file in daemon mode
python src/cron_job_manager.py --config examples/cron_config.json --daemon

# List all registered jobs
python src/cron_job_manager.py --config examples/cron_config.json --list

# Run a specific job once
python src/cron_job_manager.py --config examples/cron_config.json --run-once backup_db

# View execution history
python src/cron_job_manager.py --config examples/cron_config.json --history backup_db

# View job statistics
python src/cron_job_manager.py --config examples/cron_config.json --stats

Configuration Reference

json
{
    "jobs": [
        {
            "name": "backup_db",
            "command": "python scripts/backup.py --target /backups",
            "schedule": "daily at 02:00",
            "timeout_seconds": 300,
            "max_retries": 2,
            "alert_command": "curl -X POST https://hooks.example.com/alert -d '{\"job\": \"backup_db\", \"status\": \"failed\"}'",
            "enabled": true
        },
        {
            "name": "generate_reports",
            "command": "python scripts/reports.py",
            "schedule": "every 6h",
            "depends_on": ["backup_db"],
            "enabled": true
        },
        {
            "name": "cleanup_temp",
            "command": "find /tmp/app -mtime +7 -delete",
            "schedule": "weekly on monday at 04:00",
            "enabled": true
        }
    ]
}

CLI Options

FlagDefaultDescription
--config, -c—Job configuration file (JSON)
--daemonfalseRun as a background daemon
--listfalseList all registered jobs
--run-once—Run a specific job by name
--history—Show execution history (optionally for a specific job)
--statsfalseShow aggregate job statistics
--tick-interval30Seconds between schedule checks
--log-levelINFOLogging level

Schedule Expressions

ExpressionMeaning
every 5mEvery 5 minutes
every 1hEvery hour
every 6hEvery 6 hours
daily at 09:00Every day at 9:00 AM
daily at 02:00Every day at 2:00 AM
weekly on monday at 04:00Every Monday at 4:00 AM
Chapter 3
🔒 Available in full product

FAQ

You’ve reached the end of the free preview

Get the full Cron Job Manager 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.
Cron Job Manager v1.0.0 — Free Preview