UWSJob¶
- class safir.uws.UWSJob(job_id, message_id, owner, phase, run_id, creation_time, start_time, end_time, destruction_time, execution_duration, quote, error, parameters, results)¶
Bases:
object
Represents a single UWS job.
- Parameters:
job_id (
str
)owner (
str
)phase (
ExecutionPhase
)creation_time (
datetime
)destruction_time (
datetime
)execution_duration (
timedelta
)error (
UWSJobError
|None
)parameters (
list
[UWSJobParameter
])results (
list
[UWSJobResult
])
Methods Summary
to_xml_model
(parameters_type, job_summary_type)Convert to a Pydantic XML model.
Methods Documentation
- to_xml_model(parameters_type, job_summary_type)¶
Convert to a Pydantic XML model.
- Parameters:
parameters_type (
type
[TypeVar
(P
, bound= ParametersModel)]) – Model class used for the job parameters.job_summary_type (
type
[TypeVar
(S
, bound=JobSummary
)]) – XML model class for the job summary.
- Returns:
XML model corresponding to this job.
- Return type: