pub struct SuperviseOpts<'a> {
pub job_id: &'a str,
pub root: &'a Path,
pub command: &'a [String],
pub full_log: Option<&'a str>,
pub timeout_ms: u64,
pub kill_after_ms: u64,
pub cwd: Option<&'a str>,
pub env_vars: Vec<String>,
pub env_files: Vec<String>,
pub inherit_env: bool,
pub progress_every_ms: u64,
}Expand description
Options for the _supervise internal sub-command.
Masking is the responsibility of run (which writes masked values to meta.json
and includes them in the JSON response). The supervisor only needs the real
environment variable values to launch the child process correctly.
Fields§
§job_id: &'a str§root: &'a Path§command: &'a [String]§full_log: Option<&'a str>Override full.log path; None = use job dir default.
timeout_ms: u64Timeout in milliseconds; 0 = no timeout.
kill_after_ms: u64Milliseconds after SIGTERM before SIGKILL; 0 = immediate SIGKILL.
cwd: Option<&'a str>Working directory for the child process.
env_vars: Vec<String>Environment variables as KEY=VALUE strings (real values, not masked).
env_files: Vec<String>Paths to env files, applied in order.
inherit_env: boolWhether to inherit the current process environment.
progress_every_ms: u64Interval (ms) for state.json updated_at refresh; 0 = disabled.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SuperviseOpts<'a>
impl<'a> RefUnwindSafe for SuperviseOpts<'a>
impl<'a> Send for SuperviseOpts<'a>
impl<'a> Sync for SuperviseOpts<'a>
impl<'a> Unpin for SuperviseOpts<'a>
impl<'a> UnsafeUnpin for SuperviseOpts<'a>
impl<'a> UnwindSafe for SuperviseOpts<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more