types.JobStatus
CreatedAt is the time when the job was created
DeploymentID is the ID of the active deployment for this job. Empty if there is no active deployment.
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.
Message is a human readable message describing the state.
StateType is the current state of the object.
Possible values: [``, pending, queued, running, completed, failed, stopped, deleted]
UpdatedAt is the time when the job was last updated
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.
{
"created_at": "string",
"deployment_id": "string",
"revision": 0,
"state": {
"details": {},
"message": "string",
"state_type": ""
},
"updated_at": "string",
"version": 0
}