JobData#
Module: iqm.iqm_server_client.models
- class iqm.iqm_server_client.models.JobData(*, id: UUID, status: JobStatus, execution: JobExecution | None = None, compilation: JobCompilation | None = None, messages: list[JobMessage] = [], errors: list[JobError] = [], queue_position: int | None = None, timeline: list[TimelineEntry] = [])#
Bases:
PydanticBaseStatus, artifacts and metadata of a job.
Attributes
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Unique ID of the job.
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.
Methods
Search the timeline for an entry matching the given criteria.
- Parameters:
id (UUID)
status (JobStatus)
execution (JobExecution | None)
compilation (JobCompilation | None)
messages (list[JobMessage])
queue_position (int | None)
timeline (list[TimelineEntry])
- 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.
- execution: JobExecution | None#
Execution information for the job.
- compilation: JobCompilation | None#
Compilation information for the job.
- messages: list[JobMessage]#
Informational messages for the 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.
- find_timeline_entry(*, status: str, source: Literal['iqm-server', 'iqm-station-control'] | str | None = None) TimelineEntry | None#
Search the timeline for an entry matching the given criteria.
- Parameters:
- Returns:
The first matching entry or
Noneif the job timeline does not have any matching entries.- Return type:
TimelineEntry | None
Inheritance
