Skip to main content

Module run

Module run 

Source
Expand description

Implementation of the run sub-command.

Design decisions (from design.md):

  • run spawns a short-lived front-end that forks a _supervise child.
  • The supervisor continues logging stdout/stderr after run returns.
  • run returns launch metadata immediately; observation is delegated to status / wait / tail.

Structs§

InlineObservation
RunOpts
Options for the run sub-command.
SpawnSupervisorParams
StdinRequired
StdinTooLarge
SuperviseOpts
Options for the _supervise internal sub-command.

Enums§

StdinSource
Parameters for spawning a supervisor process.

Constants§

DEFAULT_STDIN_MAX_BYTES

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_keys will 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