Skip to main content

Module user

Module user 

Source
Expand description

The user CLI’s commands over the REST API: schedr dags ..., schedr runs ..., schedr tasks ... and schedr workers ....

Human output is aligned columns with times in UTC and local time; --json prints the API’s JSON (UTC only). Actions wait for the master’s decision and print the result, or fail with the master’s reason (see archive/PROJECT.md, Web UI and CLI).

Structs§

Output
How output is written.

Functions§

given_params
A run’s parameters from -p fields (key=value a text, key:=json any JSON value, the field syntax of the in-task CLI) or --params (one JSON object); None when none given.
run_connections
Runs schedr connections ...: the command sent, then its result read back until every worker answered; a table of each connection, or the result as JSON.
run_dags
Runs a schedr dags command.
run_events
schedr events ... (decision 354).
run_resources
schedr resources ....
run_runs
Runs a schedr runs command; warnings (e.g. --for read as UTC) go to err.
run_sensors
Runs a schedr workers command (list; draining comes with M2.6).
run_tasks
schedr tasks cancel and retry: each waits for the master’s decision; logs, attempts and output read.
run_triggers
schedr triggers ....
run_workers
schedr workers ....