Apache Airflow · Schema

TaskInstanceHistoryResponse

TaskInstanceHistory serializer for responses.

Workflow OrchestrationData PipelineOpen SourceApacheDAGSchedulingETLData Engineering

Properties

Name Type Description
task_id string
dag_id string
dag_run_id string
map_index integer
start_date object
end_date object
duration object
state object
try_number integer
max_tries integer
task_display_name string
dag_display_name string
hostname object
unixname object
pool string
pool_slots integer
queue object
priority_weight object
operator object
operator_name object
queued_when object
scheduled_when object
pid object
executor object
executor_config string
dag_version object
View JSON Schema on GitHub

JSON Schema

airflow-task-instance-history-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/airflow/refs/heads/main/json-schema/airflow-task-instance-history-response-schema.json",
  "title": "TaskInstanceHistoryResponse",
  "description": "TaskInstanceHistory serializer for responses.",
  "type": "object",
  "properties": {
    "task_id": {
      "type": "string",
      "title": "Task Id"
    },
    "dag_id": {
      "type": "string",
      "title": "Dag Id"
    },
    "dag_run_id": {
      "type": "string",
      "title": "Dag Run Id"
    },
    "map_index": {
      "type": "integer",
      "title": "Map Index"
    },
    "start_date": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Start Date"
    },
    "end_date": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "End Date"
    },
    "duration": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Duration"
    },
    "state": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/TaskInstanceState"
        },
        {
          "type": "null"
        }
      ]
    },
    "try_number": {
      "type": "integer",
      "title": "Try Number"
    },
    "max_tries": {
      "type": "integer",
      "title": "Max Tries"
    },
    "task_display_name": {
      "type": "string",
      "title": "Task Display Name"
    },
    "dag_display_name": {
      "type": "string",
      "title": "Dag Display Name"
    },
    "hostname": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Hostname"
    },
    "unixname": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Unixname"
    },
    "pool": {
      "type": "string",
      "title": "Pool"
    },
    "pool_slots": {
      "type": "integer",
      "title": "Pool Slots"
    },
    "queue": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Queue"
    },
    "priority_weight": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Priority Weight"
    },
    "operator": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Operator"
    },
    "operator_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Operator Name"
    },
    "queued_when": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Queued When"
    },
    "scheduled_when": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Scheduled When"
    },
    "pid": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Pid"
    },
    "executor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Executor"
    },
    "executor_config": {
      "type": "string",
      "title": "Executor Config"
    },
    "dag_version": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/DagVersionResponse"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "task_id",
    "dag_id",
    "dag_run_id",
    "map_index",
    "start_date",
    "end_date",
    "duration",
    "state",
    "try_number",
    "max_tries",
    "task_display_name",
    "dag_display_name",
    "hostname",
    "unixname",
    "pool",
    "pool_slots",
    "queue",
    "priority_weight",
    "operator",
    "operator_name",
    "queued_when",
    "scheduled_when",
    "pid",
    "executor",
    "executor_config",
    "dag_version"
  ]
}