Run
One occurrence of a job’s schedule, or one run started by hand, with how it went.
One occurrence of a job’s schedule, or one run started with run(), with how it went. Runs are kept for 30 days.
{
"id": "01m3c081dbf3j55x7hsa7wc1yj",
"jobId": "01m3c081d2wj4g63qcr53pa1yh",
"scheduledFor": "2026-09-29T05:00:00Z",
"trigger": "schedule",
"status": "succeeded",
"attempts": 1,
"skippedBefore": 0,
"nextAttemptAt": null,
"firstAttemptAt": "2026-09-29T05:00:00.812Z",
"finishedAt": "2026-09-29T05:00:01.034Z",
"lastStatusCode": 200,
"lastError": "",
"lastErrorClass": "",
"createdAt": "2026-09-29T05:00:00.401Z"
}Fields
idstringThe run’s ID, 26 lowercase letters and digits.
jobIdstringThe job the run belongs to.
scheduledForstringWhen the run was due, as an ISO 8601 string. For a run started with
run(), when it was started.triggerstringschedule, ormanualfor a run started withrun().statusstringpending,running,retry_wait,succeeded,failed, orcancelled. See Run statuses.attemptsnumberHow many attempts have been made.
skippedBeforenumberHow many earlier occurrences were missed and folded into this run. See Missed runs.
nextAttemptAtstring or nullWhen the next attempt is due, while the run is waiting to retry.
firstAttemptAtstring or nullWhen the first attempt was made.
nullbefore it is made.finishedAtstring or nullWhen the run finished.
nullwhile it is still going.lastStatusCodenumber or nullThe status your target answered the last attempt with.
nullwhen it did not answer.lastErrorstringWhat went wrong in the last attempt. Empty when it did not fail.
lastErrorClassstringWhy the last attempt failed, such as
timeoutordns. Empty when it did not fail. See Why attempts fail.createdAtstringWhen the run was created, as an ISO 8601 string.
With its attempts
getRun() returns the run with one more field, attemptList, one entry for each attempt:
{
"number": 1,
"startedAt": "2026-09-29T05:00:00.812Z",
"durationMs": 222,
"statusCode": 200,
"errorClass": "",
"error": "",
"responseExcerpt": "ok"
}numbernumberThe attempt number, from 1.
startedAtstringWhen the call was made, as an ISO 8601 string.
durationMsnumberHow long the call took, in milliseconds.
statusCodenumber or nullThe status your target answered with.
nullwhen it did not answer.errorClassstringWhy the attempt failed. Empty when it succeeded.
errorstringWhat went wrong. Empty when it succeeded.
responseExcerptstringThe first 4 KB of your target’s answer.
Returned by
Last updated