{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scale-ai/json-schema/scale-ai-get-batch-job-v1-response-schema.json",
  "title": "GetBatchJobV1Response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scale-ai-batch-jobs-api-openapi.yml#/components/schemas/GetBatchJobV1Response",
  "properties": {
    "status": {
      "$ref": "#/$defs/BatchJobStatus"
    },
    "result": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Result"
    },
    "duration": {
      "type": "string",
      "format": "duration",
      "title": "Duration"
    },
    "num_tasks_pending": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Num Tasks Pending"
    },
    "num_tasks_completed": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Num Tasks Completed"
    }
  },
  "type": "object",
  "required": [
    "status",
    "duration"
  ],
  "$defs": {
    "BatchJobStatus": {
      "type": "string",
      "enum": [
        "PENDING",
        "RUNNING",
        "SUCCESS",
        "FAILURE",
        "CANCELLED",
        "UNDEFINED",
        "TIMEOUT"
      ],
      "title": "BatchJobStatus"
    }
  }
}