JobResult¶
- pydantic model safir.uws.JobResult¶
A single result from a job.
- Parameters:
data (
Any
)- Fields:
- field id: Annotated[str, Field(title='Result ID', description='Identifier for this result', examples=['image', 'metadata'])] [Required]¶
Identifier for this result
- field mime_type: Annotated[str | None, Field(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, Field(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, Field(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
WorkerResult
model.- Parameters:
result (
WorkerResult
)- Return type:
Self
- to_xml_model()¶
Convert to a Pydantic XML model.
- Return type: