nomad_pydantic.JobStatus

pydantic model nomad_pydantic.JobStatus[source]

Bases: StatusModel

Status bundle emitted by nomad job status -json for one job.

field summary: JobSummary [Required] (alias 'Summary')
field allocations: list[AllocationStatus] [Required] (alias 'Allocations')
field latest_deployment: DeploymentStatus | None = None (alias 'LatestDeployment')
field evaluations: list[EvaluationStatus] [Required] (alias 'Evaluations')
classmethod from_cli(value: str | bytes) JobStatus[source]
property id: str
property namespace: str
property current_allocations: list[AllocationStatus]
property running: bool
property complete: bool
property failed: bool
property stopped: bool