Skip to main content

Execution

Execution is a single firing record for a scheduled job.

Execution records include:

status: EXECUTION_STATUS_COMPLETED, EXECUTION_STATUS_FAILED, or EXECUTION_STATUS_CANCELLED (cancellation, including operator or non-HTTP cancellation conditions).

endReason: Why a FAILED run failed, when the status alone does not say. "discarded" means the job exhausted maxAttempts and will not be retried. Empty otherwise.

httpStatus: HTTP status code returned by the target.

attempt: Attempt number (1-based) within this firing.

durationMs: End-to-end duration of the delivery attempt.

error: Error message on FAILED outcomes.

scheduledTime: When the execution was supposed to fire.

startedAt / completedAt: Actual start and completion times.

responseBody: Truncated HTTP response body captured on failed dispatches (4 KiB cap). Empty for successful dispatches.

responseHeaders: Allowlisted response headers from the failed dispatch: content-type, content-length, retry-after, x-request-id, date.

responseTruncated: true when responseBody was clipped at the 4 KiB cap.

responseSizeBytes: Original response size in bytes (from Content-Length when present, else total bytes read before truncation).

Usage profiles​

UsageFields and validation
In responsesView fields

In responses​

API JSON uses JSON field names (camelCase).

FieldTypePresenceMeaning
executionIdstring (int64)OptionalIdentifier of the scheduled job execution record. Pattern: ^-?\d+$.
scheduleIdstringOptionalIdentifier of the scheduled job.
tenantIdstringOptionalIdentifier of the tenant that owns or scopes this record.
projectIdstringOptionalIdentifier of the project within the tenant that scopes this record.
scheduledTimestring (date-time)OptionalInstant for which this execution or trigger was scheduled.
startedAtstring (date-time)OptionalTime at which the subscription or execution started.
completedAtstring (date-time)OptionalTime at which the scheduled execution completed.
statusstring (EXECUTION_STATUS_COMPLETED, EXECUTION_STATUS_FAILED, EXECUTION_STATUS_CANCELLED) or integer (int32)OptionalExecution outcome recorded for this scheduled attempt.
httpStatusinteger (int32)OptionalHTTP status code returned by the target. Minimum: -2147483648. Maximum: 2147483647.
attemptinteger (int32)OptionalAttempt number (1-based). Minimum: -2147483648. Maximum: 2147483647.
durationMsinteger (int32)OptionalEnd-to-end duration in milliseconds. Minimum: -2147483648. Maximum: 2147483647.
targetKindstringOptionalKind of target invoked by the scheduled execution.
errorstringOptionalError message when status is FAILED.
riverJobIdstring (int64)OptionalIdentifier of the underlying queue job that produced this scheduled execution, for correlating execution diagnostics. Pattern: ^-?\d+$.
responseBodystringOptionalTruncated HTTP response body captured on failed dispatches. Empty for successful dispatches by design — only error responses are stored. May also be empty for binary content types or transport-level errors (see response_size_bytes / error).
responseHeadersMap from string to stringOptionalAllowlisted response headers from the failed dispatch. Allowlist: content-type, content-length, retry-after, x-request-id, date.
responseTruncatedbooleanOptionalTrue when response_body was clipped at the 4 KiB cap.
responseSizeBytesinteger (int32)OptionalOriginal response size in bytes (from Content-Length when present, else total bytes read before truncation). Minimum: -2147483648. Maximum: 2147483647.
endReasonstringOptionalExplanation of an execution failure when status alone is insufficient, such as discarded after retry attempts were exhausted. Empty when there is no additional reason.

Values of status​

Terminal result of one scheduled-job firing; end_reason gives the reason for a non-successful result.

ValueNo.FormMeaning
EXECUTION_STATUS_COMPLETED1CanonicalThe scheduled HTTP dispatch received a status below 400; this does not establish completion of downstream asynchronous work.
EXECUTION_STATUS_FAILED2CanonicalThe firing failed, including exhausted delivery attempts; inspect end_reason.
EXECUTION_STATUS_CANCELLED5CanonicalThe firing was cancelled rather than completed, for example by an operator or a non-HTTP cancellation condition.

Where used​

ReferenceRelationship
List executions for a scheduled jobPOST /api/v1/scheduler/list-executions

Download the public reference contract.

Document: DOC-API-MODEL-execution.