Skip to main content
Stop processing remaining items and return the current run state. Completed items are retained. Poll until the run reports failed with Run canceled. pendingHumanQa defaults to wait_for_review; reviews can finish after cancellation. After 14 days on the node, eligible waiting items are accepted and charged. Set accept_without_review to accept eligible waiting items immediately. Returns 409 before deployment or once cancellation or finalization has started.

Signature

Method signature on client.runs:

Parameters

string
required
Pipeline run ID with prefix plr..
"accept_without_review" | "wait_for_review"
How to handle items waiting for Human QA. wait_for_review (default) keeps them waiting; after 14 days on the node, eligible items are accepted without review. accept_without_review accepts eligible waiting items now. Items rejected by LLM QA or already under review are excluded. Accepted items are charged as completed items.

Returns

Promise<RunJob> A pipeline run job. Poll until status is succeeded or failed.
RunId
required
Pipeline run ID with prefix plr..
DatasetId
required
Dataset ID with prefix ds..
"pending" | "running" | "succeeded" | "failed"
required
Run state: pending before deployment, running while processing, succeeded when processing ends, or failed if deployment fails; individual item failures are counted in result.
string
required
Time the run was created, as an ISO 8601 timestamp.
string | null
required
Deployment failure message, or null when the run deployed successfully.
RunStats
required
Counts of items and their current outcomes.

Errors

HTTP errors throw PotatoApiError. The endpoint documents these error responses: HTTP endpoint: POST /runs/{runId}/cancel.