JobData#

Module: iqm.station_control.interface.models.jobs_new

class JobData(*, id, type, status, execution=None, compilation=None, messages=[], errors=[], queue_position=None, timeline=[], artifacts=[])#

Bases: PydanticBase

Status, lightweight artifacts and metadata of a job.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Attributes

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

id

Unique ID of the job.

type

What kind of job it is.

status

Current job status.

execution

Execution information for the job.

compilation

Compilation information for the job.

messages

Informational messages for the job.

errors

Errors for a failed job.

queue_position

Iff the status is JobStatus.WAITING, the number of jobs ahead of this job in the queue.

timeline

Server-side statuses reached by the job so far.

artifacts

Generated artifacts that represent the output of the job.

Methods

Parameters:
model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'ser_json_inf_nan': 'constants', 'validate_assignment': True, 'validate_default': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

id: UUID#

Unique ID of the job.

type: JobType#

What kind of job it is.

status: JobStatus#

Current job status.

execution: JobExecution | None#

Execution information for the job.

compilation: JobCompilation | None#

Compilation information for the job.

messages: list[JobMessage]#

Informational messages for the job.

errors: list[IQMServerError]#

Errors for a failed job.

queue_position: int | None#

Iff the status is JobStatus.WAITING, the number of jobs ahead of this job in the queue. Otherwise None.

timeline: list[TimelineEntry]#

Server-side statuses reached by the job so far. May include statuses from several services.

artifacts: list[JobArtifactInfo]#

Generated artifacts that represent the output of the job.

Lists the currently available artifacts. More may be added as long as the job is not in a terminal status.

Inheritance

Inheritance diagram of iqm.station_control.interface.models.jobs_new.JobData