Skip to main content

types.JobStatus

created_atstring

CreatedAt is the time when the job was created

deployment_idstring

DeploymentID is the ID of the active deployment for this job. Empty if there is no active deployment.

revisioninteger

Revision is a per-job monotonically increasing revision number that is incremented on each update to the job's state or specification. This includes both user-initiated changes (which also increment Version) and system-initiated changes (status updates, state transitions, etc.). Revision >= Version always.

state object

State represents the current state of the job

details object

Details is a map of additional details about the state.

property name*string
messagestring

Message is a human readable message describing the state.

state_typetypes.JobStateType (string)

StateType is the current state of the object.

Possible values: [``, pending, queued, running, completed, failed, stopped, deleted]

updated_atstring

UpdatedAt is the time when the job was last updated

versioninteger

Version is a per-job monotonically increasing version number that is incremented on each job specification update. Version tracks changes to the job specification (user-defined fields like runtime, deployment settings, etc.). Compare with Revision which tracks ANY change including status updates.

types.JobStatus
{
"created_at": "string",
"deployment_id": "string",
"revision": 0,
"state": {
"details": {},
"message": "string",
"state_type": ""
},
"updated_at": "string",
"version": 0
}