pub enum Command {
Show 15 variants
TriggerRun {
dag_id: DagId,
planned_for: Option<Timestamp>,
params: Option<Map<String, Value>>,
event: Option<AskedEvent>,
},
Backfill(BackfillRequest),
CancelBackfill {
backfill_id: String,
},
RestartTrigger {
dag_id: DagId,
},
SkipTriggerRun {
dag_id: DagId,
},
CancelRun {
run_id: String,
},
PauseDag {
dag_id: DagId,
cancel_runs: bool,
},
UnpauseDag {
dag_id: DagId,
},
SwitchOnSensor {
dag_id: DagId,
sensor: TaskId,
},
CancelTask {
run_id: String,
task_id: TaskId,
map_index: Option<i32>,
},
RetryTask {
run_id: String,
task_id: TaskId,
map_index: Option<i32>,
},
DrainWorker {
worker_id: String,
},
ResumeWorker {
worker_id: String,
},
CheckConnections {
root: Option<String>,
name: Option<String>,
worker: Option<String>,
},
TestConnection {
name: String,
root: Option<String>,
worker: Option<String>,
timeout_ms: u64,
},
}Expand description
An action asked for by a person.
Variants§
TriggerRun
Start a manual run, for planned_for (--for) or now.
Fields
params: Option<Map<String, Value>>Values for the run’s parameters, as JSON, over the DAG’s defaults (decision 138).
event: Option<AskedEvent>The event it brings, for a DAG a trigger starts.
Backfill(BackfillRequest)
Create a backfill (schedr runs backfill, decisions 363, 364, 400-404).
CancelBackfill
Cancel a backfill’s queued and running runs (schedr runs cancel --backfill,
decision 402); its finished runs stay.
RestartTrigger
Start a DAG’s trigger again from its bookmark, whatever stopped it (schedr triggers restart).
SkipTriggerRun
Pass the run an @trigger(wait_for=...) keeps failing on, so it is called for the next
(schedr triggers skip, decision 353); refused while a call of it runs.
CancelRun
Cancel a run (queued or running).
PauseDag
Stop the scheduler from creating runs of a DAG; optionally cancel its runs in progress.
UnpauseDag
Let the scheduler create runs of a DAG again.
SwitchOnSensor
Switch a wait step back on (schedr sensors switch-on, decision 338).
CancelTask
Cancel one task of a run (schedr tasks cancel): stopped if it runs, cancelled at
once if it hasn’t started; the tasks downstream of it are cancelled.
Fields
RetryTask
Queue an unschedulable task of an unfinished run again (schedr tasks retry).
Fields
DrainWorker
Drain a worker for maintenance (schedr workers drain): no new tasks, its running ones
finish; kept across restarts until resumed.
ResumeWorker
Let a drained worker take tasks again (schedr workers resume).
CheckConnections
Render connections on a worker (schedr connections check, decisions 174, 193): every
secret present or missing, never a value. Each root on a worker having its current
code; the command’s result fills in as the workers answer.
Fields
TestConnection
Open a connection on a worker and run its check (schedr connections test, decisions
193, 198-200): beside the tasks, no slot, one at a time per worker.