Apache Airflow · JSON Structure

Airflow Task Instance History Response Structure

TaskInstanceHistory serializer for responses.

Type: object Properties: 26 Required: 26
Workflow OrchestrationData PipelineOpen SourceApacheDAGSchedulingETLData Engineering

TaskInstanceHistoryResponse is a JSON Structure definition published by Apache Airflow, describing 26 properties, of which 26 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

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

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/airflow/refs/heads/main/json-structure/airflow-task-instance-history-response-structure.json",
  "name": "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": "int32",
      "title": "Map Index"
    },
    "start_date": {
      "anyOf": [
        {
          "type": "datetime"
        },
        {
          "type": "null"
        }
      ],
      "title": "Start Date"
    },
    "end_date": {
      "anyOf": [
        {
          "type": "datetime"
        },
        {
          "type": "null"
        }
      ],
      "title": "End Date"
    },
    "duration": {
      "anyOf": [
        {
          "type": "double"
        },
        {
          "type": "null"
        }
      ],
      "title": "Duration"
    },
    "state": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/TaskInstanceState"
        },
        {
          "type": "null"
        }
      ]
    },
    "try_number": {
      "type": "int32",
      "title": "Try Number"
    },
    "max_tries": {
      "type": "int32",
      "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": "int32",
      "title": "Pool Slots"
    },
    "queue": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Queue"
    },
    "priority_weight": {
      "anyOf": [
        {
          "type": "int32"
        },
        {
          "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": "datetime"
        },
        {
          "type": "null"
        }
      ],
      "title": "Queued When"
    },
    "scheduled_when": {
      "anyOf": [
        {
          "type": "datetime"
        },
        {
          "type": "null"
        }
      ],
      "title": "Scheduled When"
    },
    "pid": {
      "anyOf": [
        {
          "type": "int32"
        },
        {
          "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"
  ]
}