Expand description
Running a parsed command: loading the configuration and dispatching to the command.
Enums§
- AppError
- Why a command failed; the binary prints it and exits with
AppError::exit_code.
Functions§
- connect
- The client and output settings of a user CLI command: the server (
connect_to), credentials (the password fromSCHEDR_PASSWORD),--jsonand the local zone (TZ, else the system’s). - connect_
to - The API client for
url: the CLI’s credentials and the same poll, wait, connect and request timeouts as every other server command. - describe_
status - A human-readable description of a schema status.
- execute
- Runs a parsed command.
- load_
config - Loads the configuration: chooses the file, reads it with
read, and layers the environment on top. A missing default file is fine; a missing explicit one is an error. - load_
config_ with - As
load_config, with the command’s options over the file and the environment. - local_
config - The configuration of a local command (
standalone,dags check,dags test): the built-inpythoninterpreter looked for from here (seecrate::interpreter). - role_
config - The configuration with the built-in
pythoninterpreter looked for (seecrate::interpreter::apply):projecton for the local commands, off for a worker. - run_db
- Runs a
schedr dbcommand against the configured database.