WorkerResult

pydantic model safir.arq.uws.WorkerResult

A single result from the job.

Parameters:

data (Any)

Show JSON schema
{
   "title": "WorkerResult",
   "description": "A single result from the job.",
   "type": "object",
   "properties": {
      "result_id": {
         "title": "Result Id",
         "type": "string"
      },
      "url": {
         "title": "Url",
         "type": "string"
      },
      "size": {
         "anyOf": [
            {
               "type": "integer"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Size"
      },
      "mime_type": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Mime Type"
      }
   },
   "required": [
      "result_id",
      "url"
   ]
}

Fields:
field mime_type: str | None = None

MIME type of the result.

field result_id: str [Required]

Identifier for the result.

field size: int | None = None

Size of the result in bytes.

field url: str [Required]

URL for the result, which must point to a GCS bucket.