You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2026/04/18 00:53:32 UTC

(airflow) branch main updated: Sync DagRunProtocol with DagRun model in task-sdk (#65347)

This is an automated email from the ASF dual-hosted git repository.

kaxil pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 97e3997a549 Sync DagRunProtocol with DagRun model in task-sdk (#65347)
97e3997a549 is described below

commit 97e3997a5492cf9f0a2c64996a70d3048eb65d6a
Author: Jeongwoo Do <48...@users.noreply.github.com>
AuthorDate: Sat Apr 18 09:53:22 2026 +0900

    Sync DagRunProtocol with DagRun model in task-sdk (#65347)
---
 task-sdk/src/airflow/sdk/types.py | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/task-sdk/src/airflow/sdk/types.py b/task-sdk/src/airflow/sdk/types.py
index 4ce43c57c11..262e1206a30 100644
--- a/task-sdk/src/airflow/sdk/types.py
+++ b/task-sdk/src/airflow/sdk/types.py
@@ -34,7 +34,13 @@ if TYPE_CHECKING:
 
     from airflow.models.taskinstance import TaskInstance as SchedulerTaskInstance
     from airflow.sdk._shared.logging.types import Logger as Logger
-    from airflow.sdk.api.datamodels._generated import PreviousTIResponse, TaskInstanceState
+    from airflow.sdk.api.datamodels._generated import (
+        AssetEventDagRunReference,
+        DagRunState,
+        DagRunType,
+        PreviousTIResponse,
+        TaskInstanceState,
+    )
     from airflow.sdk.bases.operator import BaseOperator
     from airflow.sdk.definitions.asset import Asset, AssetAlias, AssetAliasEvent, AssetRef, BaseAssetUniqueKey
     from airflow.sdk.definitions.context import Context
@@ -100,12 +106,17 @@ class DagRunProtocol(Protocol):
     logical_date: AwareDatetime | None
     data_interval_start: AwareDatetime | None
     data_interval_end: AwareDatetime | None
+    run_after: AwareDatetime
     start_date: AwareDatetime | None
     end_date: AwareDatetime | None
-    run_type: Any
-    run_after: AwareDatetime
+    clear_number: int | None
+    run_type: DagRunType
+    state: DagRunState
     conf: dict[str, Any] | None
     triggering_user_name: str | None
+    consumed_asset_events: list[AssetEventDagRunReference]
+    partition_key: str | None
+    note: str | None
 
 
 class RuntimeTaskInstanceProtocol(Protocol):