Skip to content
Cli referenceScheduler
AGH RuntimeScheduler

agh scheduler

Inspect and control task scheduler dispatch

Audience
Operators running durable agent work
Focus
Scheduler guidance shaped for scanability, day-two clarity, and operator context.

agh scheduler

Inspect and control task scheduler dispatch

agh scheduler [flags]

Examples

  # Show scheduler pause and backlog pressure
  agh scheduler status

  # Pause all new scheduler dispatch while active claims continue
  agh scheduler pause --reason "incident response"

  # Pause and wait up to 30 seconds for active claims to finish
  agh scheduler drain --timeout 30s

Options

  -h, --help   help for scheduler

Options inherited from parent commands

      --json            Emit JSON output
  -o, --output string   Output format: human, json, jsonl, or toon (default "human")

Output Formats

Every AGH command supports -o, --output:

  • human for interactive terminal use
  • json for scripts and other machine-readable consumers
  • jsonl for wait or streaming commands that emit one JSON record per line
  • toon for compact agent-readable summaries

Example:

agh scheduler -o json

Subcommands

CommandDescription
agh scheduler backlogList queued runs visible to scheduler dispatch
agh scheduler drainPause dispatch and wait for active task claims to finish
agh scheduler pausePause new scheduler dispatch
agh scheduler resumeResume scheduler dispatch
agh scheduler statusShow scheduler pause and queue pressure

On this page