Skip to main content

engine_env

Function engine_env 

Source
pub fn engine_env(
    config: &EngineResolverConfig,
) -> Result<Vec<(String, String)>>
Expand description

Computes the environment variables that configure a rivet-engine process for the given endpoint. The engine requires the log directory to exist; see engine_log_directory.

Shared by the spawn path and by callers that exec the engine binary directly (for example the CLI engine proxy) so both operate on the same data, guard, api-peer, and metrics ports. These callers run one local development engine: it is the only Depot storage worker, keeps its cold data in a local directory, provisions its own tablet on first start, and uses shorter recovery and shutdown thresholds than the production defaults.