Skip to main content

agent_settings

Function agent_settings 

Source
pub fn agent_settings(
    config: &Config,
    env: &BTreeMap<String, String>,
    data_dir: &Path,
    default_reserve: Reserve,
) -> Result<AgentSettings, AppError>
Expand description

The worker agent’s settings, from the configuration; its journal is <data_dir>/journal/<worker ID> and its logs <data_dir>/logs/<worker ID> (other bytes than letters, digits, -, _ and ., and a leading ., as %XX), so workers sharing a data directory never see each other’s (retention, the log endpoint). Without [worker] memory_reserve, the task budgets leave default_reserve of the pod’s limit out.

§Errors

AppError::BadArgument if the DAG interpreter isn’t defined, the memory check interval is 0, or the memory budget (set, or what the reserve leaves) below MIN_BUDGET.