Xeonr Developer Docs

Mark Run Failed

POST
/uplim.api.v1.InternalPipelineRunsService/MarkRunFailed

Marks a run FAILED with the failing step id, failure class and message, and stamps finished_at. Never overwrites a run that is already terminal; unknown ids are a no-op.

Access: internal only — the pipeline coordinator, authenticated by the shared X-Upl-Internal-Token header matching PIPELINE_INTERNAL_TOKEN (FailedPrecondition when unset, Unauthenticated on mismatch). No user authentication.

AuthorizationBearer <token>

JWT access token obtained via OAuth2 flow or service account

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

runId?string
Formatuuid
failureStepId?string
Lengthlength <= 255
failureClass?string
Value in"STEP_FAILURE_CLASS_UNSPECIFIED" | "STEP_FAILURE_CLASS_MISSING_OUTPUT" | "STEP_FAILURE_CLASS_SCHEMA_VALIDATION" | "STEP_FAILURE_CLASS_TIMEOUT" | "STEP_FAILURE_CLASS_SANDBOX_VIOLATION" | "STEP_FAILURE_CLASS_NONZERO_EXIT" | "STEP_FAILURE_CLASS_RUNNER_CRASHED" | "STEP_FAILURE_CLASS_DEPENDENCY_FAILED" | "STEP_FAILURE_CLASS_USER_CANCELLED" | "STEP_FAILURE_CLASS_IMAGE_PULL_FAILED" | "STEP_FAILURE_CLASS_STAGING_FAILED"
failureMessage?string
Lengthlength <= 65535
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://uploads-api.xeonr.io/uplim.api.v1.InternalPipelineRunsService/MarkRunFailed" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{}
{
  "code": "not_found",
  "message": "string",
  "details": [
    {
      "type": "string",
      "value": "string",
      "debug": {}
    }
  ]
}