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:
PydanticBaseStatus, 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
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Unique ID of the job.
What kind of job it is.
Current job status.
Execution information for the job.
Compilation information for the job.
Informational messages for the job.
Errors for a failed job.
Iff the status is JobStatus.WAITING, the number of jobs ahead of this job in the queue.
Server-side statuses reached by the job so far.
Generated artifacts that represent the output of the job.
Methods
- Parameters:
id (UUID)
type (Literal['run', 'circuit'])
status (JobStatus)
execution (JobExecution | None)
compilation (JobCompilation | None)
messages (list[JobMessage])
errors (list[IQMServerError])
queue_position (int | None)
timeline (list[TimelineEntry])
artifacts (list[JobArtifactInfo])
- 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.
- 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
