xbp 10.40.0

XBP is a zero-config build pack that can also interact with proxies, kafka, sockets, synthetic monitors.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::cli::commands::RunnersCmd;
use crate::cli::error::{CliResult, ErrorFactory};
use crate::commands::run_runners;
use crate::logging::log_error;

pub async fn handle_runners(cmd: RunnersCmd, _debug: bool) -> CliResult<()> {
    if let Err(error) = run_runners(&cmd).await {
        let _ = log_error("runners", "Runner command failed", Some(&error)).await;
        return Err(ErrorFactory::operation(
            "runners",
            "run runner command",
            error,
            Some("Check runner payloads, organization IDs, and configured API base URL."),
        ));
    }

    Ok(())
}