Tearleads

GET/root/jobs/{jobId}/runs/{runId}

Read one scheduled job run with its steps and output

Operation root.jobs.runs.get

Description

Reads one recorded run of a scheduled job: each step's status, duration, counts, and error, and the console output its steps wrote, capped per run. Only root operators may call it, and each request is recorded in the root audit trail.

Authentication

Requires a signed-in session: the client sends its session token as a bearer token in the Authorization header.

Parameters

NameInTypeDetails
jobIdpathstringrequired
  • pattern ^[a-z][a-z0-9-]{0,63}$
runIdpathstringrequired
  • lowercase UUID v4

Responses

200 OK

application/jsonRootJobRunResponse

One recorded run of a scheduled job with each step's result and its captured console output.

11 fields
  • idstringrequired
    • not empty

    The run's id; it anchors the next page's cursor.

  • jobIdstringrequired
    • not empty
  • statusstringrequired
    • one of running, succeeded, failed, abandoned

    running, succeeded, failed, or abandoned: still recorded as running long after any invocation could have ended.

  • scheduledAtstringrequired

    The Cron time the platform invoked the run for.

  • startedAtstringrequired
  • finishedAtstringrequirednullable

    When the run ended; null while it runs, or when it never ended.

  • durationMsintegerrequirednullable
    • at least 0

    Milliseconds from start to end; null until the run ends.

  • failedStepslist of stringrequired
    • each item: not empty

    Names of the steps that threw or counted failed items.

  • errorstringrequirednullable

    Why the run failed, when it did.

  • stepslist of RootJobRunStepResultResponserequired
  • outputobjectrequired

    Console lines the steps wrote, capped per run; omittedLines counts those dropped at the cap.

    2 fields

    Other fields are allowed.

Other fields are allowed.

Other responses

StatusMeaningBody
400Bad Request

application/jsonErrorResponse

401Unauthorized

application/jsonSessionFailureResponse

403Forbidden

application/jsonErrorResponse

404Not Found

application/jsonErrorResponse

500Internal Server Error

application/jsonErrorResponse

503Service Unavailable

application/jsonErrorResponse