Skip to main content

start_exec

Function start_exec 

Source
pub async fn start_exec(req: ExecRequest) -> Result<String, ServerFnError>
Expand description

提交一次代码执行请求。

同步校验通过后立即返回 task_id,容器在后台执行;结果通过 get_exec_result 轮询查询。语言不支持 / 源码过大 / 触发限流时同步返回错误。

admin 角色跳过速率限制(便于作者在沙箱调试),但仍受并发槽、 资源钳制与源码大小校验约束。

§Handler information

  • Method: post
  • Path: <auto>