SerializedJob

pydantic model safir.uws.SerializedJob

A single UWS job (Wobbly format).

Parameters:

data (Any)

Fields:
field creation_time: Annotated[TypeAliasType] [Required]

When the job was created

field end_time: Annotated[TypeAliasType | None] = None

When the job stopped executing (if it has)

field errors: Annotated[list[JobError]] = []

Error information if the job failed

field id: Annotated[str] [Required]

Unique identifier of the job

Constraints:
  • func = <function SerializedJob.<lambda> at 0x7fc8f1ca3b00>

  • json_schema_input_type = PydanticUndefined

field message_id: Annotated[str | None] = None

Internal message identifier for the work queuing system. Only meaningful to the service that stored this ID.

field owner: Annotated[str] [Required]

Identity of the owner of the job

field phase: Annotated[ExecutionPhase] [Required]

Current execution phase of the job

field quote: Annotated[TypeAliasType | None] = None

Expected completion time of the job if it were started now, or null to indicate that the expected duration is not known. If later than the destruction time, indicates that the job is not possible due to resource constraints.

field results: Annotated[list[JobResult]] = []

Results of the job, if it has finished

field service: Annotated[str] [Required]

Service responsible for this job

field start_time: Annotated[TypeAliasType | None] = None

When the job started executing (if it has)

to_job_description(base_url)

Convert to the Pydantic XML model used for the summary of jobs.

Parameters:

base_url (str) – Base URL for the full jobs.

Return type:

ShortJobDescription