Skip to main content

worker_submit

Function worker_submit 

Source
pub async fn worker_submit(
    __arg0: State<AppState>,
    headers: HeaderMap,
    __arg2: Query<SubmitQuery>,
    body: Bytes,
) -> Result<StatusCode, ApiError>
Expand description

POST /v1/worker/submit. Simplified counterpart of worker_result: the caller sends only the raw result body, task_id is resolved server-side from the Bearer handle/token, and ok defaults to true unless overridden via SubmitQuery::ok. See the module doc for the short-handle vs full-CapToken Bearer forms.