Expand description
Implementation of the run sub-command.
Design decisions (from design.md):
runspawns a short-lived front-end that forks a_supervisechild.- The supervisor continues logging stdout/stderr after
runreturns. runreturns launch metadata immediately; observation is delegated tostatus/wait/tail.
Structs§
- Inline
Observation - RunOpts
- Options for the
runsub-command. - Spawn
Supervisor Params - Stdin
Required - Stdin
TooLarge - Supervise
Opts - Options for the
_superviseinternal sub-command.
Enums§
- Stdin
Source - Parameters for spawning a supervisor process.
Constants§
Functions§
- execute
- Execute
run: spawn job and return launch metadata immediately. - mask_
env_ vars - Mask the values of specified keys in a list of KEY=VALUE strings.
Keys listed in
mask_keyswill have their value replaced with “***”. - materialize_
stdin_ for_ job - now_
rfc3339_ pub - Public alias so other modules can call the timestamp helper.
- observe_
inline_ output - Resolve the effective working directory for a job.
- open_
child_ stdin - pre_
create_ log_ files - Pre-create empty log files (stdout.log, stderr.log, full.log) so they exist immediately after job creation, before the supervisor starts writing.
- resolve_
effective_ cwd - resolve_
stdin_ source - spawn_
supervisor_ process - Spawn the supervisor process and write the initial running state to
state.json. - supervise
- Internal supervisor sub-command.
- validate_
stdin_ source