JobResult#
- pydantic model safir.uws.JobResult#
A single result from a job.
- Parameters:
data (
Any)- Fields:
- field id: Annotated[str, FieldInfo(annotation=NoneType, required=True, title='Result ID', description='Identifier for this result', examples=['image', 'metadata'])] [Required]#
Identifier for this result
- field mime_type: Annotated[str | None, FieldInfo(annotation=NoneType, required=True, title='MIME type of result', description='MIME type of the result if known', examples=['application/fits', 'application/x-votable+xml', None])] = None#
MIME type of the result if known
- field size: Annotated[int | None, FieldInfo(annotation=NoneType, required=True, title='Size of result', description='Size of the result in bytes if known', examples=[1238123, None])] = None#
Size of the result in bytes if known
- field url: Annotated[str, FieldInfo(annotation=NoneType, required=True, title='Result URL', description='URL where the result is stored', examples=['s3://service-result-bucket/some-file'])] [Required]#
URL where the result is stored
- classmethod from_worker_result(result)#
Convert from the
WorkerResultmodel.- Parameters:
result (
WorkerResult)- Return type:
- to_xml_model()#
Convert to a Pydantic XML model.
- Return type: