Apache Airflow · JSON Structure

Openapi.Yaml Task Structure

For details see: [airflow.models.BaseOperator](https://airflow.apache.org/docs/apache-airflow/stable/_api/airflow/models/index.html#airflow.models.BaseOperator)

Type: object Properties: 24
ApacheDAGData PipelineETLOpen SourceOrchestrationPythonSchedulingWorkflow

Task is a JSON Structure definition published by Apache Airflow, describing 24 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

class_ref depends_on_past downstream_task_ids end_date execution_timeout extra_links is_mapped owner pool pool_slots priority_weight queue retries retry_delay retry_exponential_backoff start_date sub_dag task_id template_fields trigger_rule ui_color ui_fgcolor wait_for_downstream weight_rule

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/apache-airflow/refs/heads/main/json-structure/openapi.yaml-task-structure.json",
  "name": "Task",
  "description": "For details see:\n[airflow.models.BaseOperator](https://airflow.apache.org/docs/apache-airflow/stable/_api/airflow/models/index.html#airflow.models.BaseOperator)\n",
  "type": "object",
  "properties": {
    "class_ref": {
      "$ref": "#/components/schemas/ClassReference"
    },
    "depends_on_past": {
      "readOnly": true,
      "type": "boolean"
    },
    "downstream_task_ids": {
      "items": {
        "type": "string"
      },
      "readOnly": true,
      "type": "array"
    },
    "end_date": {
      "format": "date-time",
      "nullable": true,
      "readOnly": true,
      "type": "string"
    },
    "execution_timeout": {
      "$ref": "#/components/schemas/TimeDelta",
      "nullable": true
    },
    "extra_links": {
      "items": {
        "properties": {
          "class_ref": {
            "$ref": "#/components/schemas/ClassReference"
          }
        },
        "type": "object"
      },
      "readOnly": true,
      "type": "array"
    },
    "is_mapped": {
      "readOnly": true,
      "type": "boolean"
    },
    "owner": {
      "readOnly": true,
      "type": "string"
    },
    "pool": {
      "readOnly": true,
      "type": "string"
    },
    "pool_slots": {
      "readOnly": true,
      "type": "number"
    },
    "priority_weight": {
      "readOnly": true,
      "type": "number"
    },
    "queue": {
      "nullable": true,
      "readOnly": true,
      "type": "string"
    },
    "retries": {
      "readOnly": true,
      "type": "number"
    },
    "retry_delay": {
      "$ref": "#/components/schemas/TimeDelta",
      "nullable": true
    },
    "retry_exponential_backoff": {
      "readOnly": true,
      "type": "boolean"
    },
    "start_date": {
      "format": "date-time",
      "readOnly": true,
      "type": "string"
    },
    "sub_dag": {
      "$ref": "#/components/schemas/DAG"
    },
    "task_id": {
      "readOnly": true,
      "type": "string"
    },
    "template_fields": {
      "items": {
        "type": "string"
      },
      "readOnly": true,
      "type": "array"
    },
    "trigger_rule": {
      "$ref": "#/components/schemas/TriggerRule"
    },
    "ui_color": {
      "$ref": "#/components/schemas/Color"
    },
    "ui_fgcolor": {
      "$ref": "#/components/schemas/Color"
    },
    "wait_for_downstream": {
      "readOnly": true,
      "type": "boolean"
    },
    "weight_rule": {
      "$ref": "#/components/schemas/WeightRule"
    }
  }
}