Skip to main content

update_runner_settings

Function update_runner_settings 

Source
pub async fn update_runner_settings(
    allow_network: bool,
    max_concurrent: u32,
    max_cpu_cores: f64,
    max_memory_mb: u32,
    max_timeout_secs: u32,
    max_output_bytes: u64,
    max_source_bytes: u64,
    queue_timeout_secs: u32,
    task_ttl_secs: u32,
    languages: Option<String>,
) -> Result<RunnerSettings, ServerFnError>
Expand description

更新代码运行器配置。

字段会被 clamp / 规范化后写入 DB。配置烘焙进 LazyLock,修改后需重启进程生效。

§Handler information

  • Method: post
  • Path: <auto>