This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v3-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-1-test by this push:
new cebc88b6982 [v3-1-test] [BUGFIX] Flush session() before processing
Event Buffer (#59314) (#59559)
cebc88b6982 is described below
commit cebc88b69822ae6ecb2eda34e93a5c9bf86a4e42
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Dec 17 12:55:29 2025 +0100
[v3-1-test] [BUGFIX] Flush session() before processing Event Buffer
(#59314) (#59559)
(cherry picked from commit e7a1e57fd16f7749f20d30f26b358af7bb01c8d5)
Co-authored-by: Judit Novak <[email protected]>
---
task-sdk/src/airflow/sdk/definitions/dag.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/task-sdk/src/airflow/sdk/definitions/dag.py
b/task-sdk/src/airflow/sdk/definitions/dag.py
index d5ae8353bd9..b51012d64a0 100644
--- a/task-sdk/src/airflow/sdk/definitions/dag.py
+++ b/task-sdk/src/airflow/sdk/definitions/dag.py
@@ -1339,6 +1339,8 @@ class DAG:
log.exception("Task failed; ti=%s", ti)
if use_executor:
executor.heartbeat()
+ session.expire_all()
+
from airflow.jobs.scheduler_job_runner import
SchedulerJobRunner
from airflow.models.dagbag import DBDagBag