Skip to main content

start_run

Function start_run 

Source
pub fn start_run(
    agent: &Agent,
    api_base: &str,
    token: &str,
    metadata: &JobMetadata,
    pid: Option<i32>,
    host: &HostInfo,
    cloud: &CloudInfo,
) -> Result<RunContext, String>
Expand description

POST to /runs to register a new run with the Sentinel API.

On failure the caller should log a warning and disable streaming; local stdout output continues normally (Section 11 error handling).