Skip to main content

execute_in_container

Function execute_in_container 

Source
async fn execute_in_container(
    language: &str,
    source: &str,
) -> Result<RunResult, String>
Expand description

执行一次容器内代码运行(同步收集输出)。

镜像 start_exec 的后台 spawn 体:排队信号量 → 归一化语言 → clamp_limits → run_in_container,但把结果直接返回而非写入 EXEC_TASKS。