Skip to main content

kernel_resource_limits

Function kernel_resource_limits 

Source
pub fn kernel_resource_limits(
    lookup: impl Fn(&str) -> Option<String>,
    overrides: LimitOverrides,
) -> Result<KernelResourceLimits, KernelError>
Expand description

Limits from ULTRON_RLM_MAX_MEMORY_MB and ULTRON_RLM_MAX_CPU_SECONDS (read through lookup), then overrides. A malformed value falls back to the default; a value over 2^53 - 1 is an error, as in TypeScript.