pub struct JobMeta {Show 18 fields
pub job: JobMetaJob,
pub schema_version: String,
pub command: Vec<String>,
pub created_at: String,
pub root: String,
pub env_keys: Vec<String>,
pub env_vars: Vec<String>,
pub env_vars_runtime: Vec<String>,
pub mask: Vec<String>,
pub cwd: Option<String>,
pub notification: Option<NotificationConfig>,
pub tags: Vec<String>,
pub inherit_env: bool,
pub env_files: Vec<String>,
pub timeout_ms: u64,
pub kill_after_ms: u64,
pub progress_every_ms: u64,
pub shell_wrapper: Option<Vec<String>>,
}Expand description
Persisted in meta.json at job creation time.
Structure:
{
"job": { "id": "..." },
"schema_version": "0.1",
"command": [...],
"created_at": "...",
"root": "...",
"env_keys": [...],
"env_vars": [...],
"mask": [...]
}env_keys stores only the names (keys) of environment variables passed via --env.
env_vars stores KEY=VALUE strings with masked values replaced by “***” (display only).
env_vars_runtime stores the actual (unmasked) KEY=VALUE strings used at start time.
For the run command, this field is empty (env vars are passed directly to the supervisor).
For the create/start lifecycle, this field persists the real KEY=VALUE pairs so
start can apply them without re-specifying CLI arguments.
mask stores the list of keys whose values are masked in output/metadata views.
cwd stores the effective working directory at job creation time (canonicalized).
For the create/start lifecycle, additional execution-definition fields are
persisted so that start can launch the job without re-specifying CLI arguments.
Fields§
§job: JobMetaJob§schema_version: String§command: Vec<String>§created_at: String§root: String§env_keys: Vec<String>Keys of environment variables provided at job creation time.
env_vars: Vec<String>Environment variables as KEY=VALUE strings, with masked values replaced by “***”. Used for display in JSON responses and metadata views only.
env_vars_runtime: Vec<String>Actual (unmasked) KEY=VALUE env var pairs persisted for start runtime use.
Only populated in the create/start lifecycle. For run, this is empty
because env vars are passed directly to the supervisor.
--env in the create/start lifecycle is treated as durable, non-secret configuration;
use --env-file for values that should never be written to disk.
mask: Vec<String>Keys whose values are masked in output.
cwd: Option<String>Effective working directory at job creation time (canonicalized absolute path).
Used by list to filter jobs by cwd. Absent for jobs created before this feature.
notification: Option<NotificationConfig>Notification configuration (present only when –notify-command or –notify-file was used).
User-defined tags for grouping and filtering. Empty array when none.
inherit_env: boolWhether to inherit the current process environment at start time. Default: true.
env_files: Vec<String>Env-file paths to apply in order at start time (real values read from file on start).
timeout_ms: u64Timeout in milliseconds; 0 = no timeout.
kill_after_ms: u64Milliseconds after SIGTERM before SIGKILL; 0 = immediate SIGKILL.
progress_every_ms: u64Interval (ms) for state.json updated_at refresh; 0 = disabled.
shell_wrapper: Option<Vec<String>>Resolved shell wrapper argv (e.g. [“sh”, “-lc”]). None = resolved from config at start time.