Apache Airflow · Schema

TaskInstance

TaskInstance schema from Apache Airflow API

ApacheDAGData PipelineETLOpen SourceOrchestrationPythonSchedulingWorkflow

Properties

Name Type Description
dag_id string
dag_run_id string The DagRun ID for this task instance *New in version 2.3.0*
duration number
end_date string
execution_date string
executor_config string
hostname string
map_index integer
max_tries integer
note string Contains manually entered notes by the user about the TaskInstance. *New in version 2.5.0*
operator string *Changed in version 2.1.1*: Field becomes nullable.
pid integer
pool string
pool_slots integer
priority_weight integer
queue string
queued_when string
rendered_fields object JSON object describing rendered fields. *New in version 2.3.0*
sla_miss object
start_date string
state object
task_id string
trigger object
triggerer_job object
try_number integer
unixname string
View JSON Schema on GitHub

JSON Schema

openapi.yaml-task-instance-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-airflow/refs/heads/main/json-schema/openapi.yaml-task-instance-schema.json",
  "title": "TaskInstance",
  "description": "TaskInstance schema from Apache Airflow API",
  "type": "object",
  "properties": {
    "dag_id": {
      "type": "string"
    },
    "dag_run_id": {
      "description": "The DagRun ID for this task instance\n\n*New in version 2.3.0*\n",
      "type": "string"
    },
    "duration": {
      "nullable": true,
      "type": "number"
    },
    "end_date": {
      "format": "datetime",
      "nullable": true,
      "type": "string"
    },
    "execution_date": {
      "format": "datetime",
      "type": "string"
    },
    "executor_config": {
      "type": "string"
    },
    "hostname": {
      "type": "string"
    },
    "map_index": {
      "type": "integer"
    },
    "max_tries": {
      "type": "integer"
    },
    "note": {
      "description": "Contains manually entered notes by the user about the TaskInstance.\n\n*New in version 2.5.0*\n",
      "nullable": true,
      "type": "string"
    },
    "operator": {
      "description": "*Changed in version 2.1.1*: Field becomes nullable.\n",
      "nullable": true,
      "type": "string"
    },
    "pid": {
      "nullable": true,
      "type": "integer"
    },
    "pool": {
      "type": "string"
    },
    "pool_slots": {
      "type": "integer"
    },
    "priority_weight": {
      "nullable": true,
      "type": "integer"
    },
    "queue": {
      "nullable": true,
      "type": "string"
    },
    "queued_when": {
      "nullable": true,
      "type": "string"
    },
    "rendered_fields": {
      "description": "JSON object describing rendered fields.\n\n*New in version 2.3.0*\n",
      "type": "object"
    },
    "sla_miss": {
      "$ref": "#/components/schemas/SLAMiss",
      "nullable": true
    },
    "start_date": {
      "format": "datetime",
      "nullable": true,
      "type": "string"
    },
    "state": {
      "$ref": "#/components/schemas/TaskState",
      "nullable": true
    },
    "task_id": {
      "type": "string"
    },
    "trigger": {
      "$ref": "#/components/schemas/Trigger",
      "nullable": true
    },
    "triggerer_job": {
      "$ref": "#/components/schemas/Job",
      "nullable": true
    },
    "try_number": {
      "type": "integer"
    },
    "unixname": {
      "type": "string"
    }
  }
}