Skip to content

[v3-3-test] Fix ExternalTaskSensor example Dag never finding its parent task (#72480) - #72751

Draft
github-actions[bot] wants to merge 1 commit into
v3-3-testfrom
backport-20fb83c-v3-3-test
Draft

[v3-3-test] Fix ExternalTaskSensor example Dag never finding its parent task (#72480)#72751
github-actions[bot] wants to merge 1 commit into
v3-3-testfrom
backport-20fb83c-v3-3-test

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Both example Dags in example_external_task_marker_dag.py used
schedule=None, so every run was independently, manually triggered and
got its own logical date. ExternalTaskSensor matches task instances by
logical date by default, so the child's sensor could never find a
matching task instance in the parent Dag, making the example unusable
as a template for a working ExternalTaskSensor + ExternalTaskMarker
setup.

Give both Dags the same recurring schedule so that corresponding
parent/child Dag runs share a logical date, as originally diagnosed by
a maintainer on the issue.
(cherry picked from commit 20fb83c)

Co-authored-by: Dheeren Mohta dheerenmohta@gmail.com
Closes: #13681

…nt task (#72480)

Both example Dags in example_external_task_marker_dag.py used
schedule=None, so every run was independently, manually triggered and
got its own logical date. ExternalTaskSensor matches task instances by
logical date by default, so the child's sensor could never find a
matching task instance in the parent Dag, making the example unusable
as a template for a working ExternalTaskSensor + ExternalTaskMarker
setup.

Give both Dags the same recurring schedule so that corresponding
parent/child Dag runs share a logical date, as originally diagnosed by
a maintainer on the issue.
(cherry picked from commit 20fb83c)

Co-authored-by: Dheeren Mohta <dheerenmohta@gmail.com>
Closes: #13681
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant