ydsakshi opened a new pull request, #74580: URL: https://github.com/apache/airflow/pull/74580
### Description Fix ExternalTaskSensor generating incorrect link to external DAG run when using `execution_date_fn`. The link was incorrectly pointing to the dependent(child) DAG's run_id instead of the external(dependency) DAG's run_id that the sensor actually waited for. #### Evidence Description | Master | Proposed ---|---|--- Successful External(Dependency) Run|<img width="1857" height="643" alt="master_parent_runid" src="https://github.com/user-attachments/assets/c0c6fb18-3294-4ed2-accf-77ffb779db06" />|<img width="1865" height="558" alt="ss_parent_run_feature" src="https://github.com/user-attachments/assets/4a0e5717-9863-4681-a3a4-5e6e827c22a9" /> Xcom value(Dependent Run)|<img width="1857" height="643" alt="master_child_run_xcom" src="https://github.com/user-attachments/assets/5baf7ad0-05bc-40a4-a099-427bf1f11375" />|<img width="1857" height="605" alt="feature_xcom_child" src="https://github.com/user-attachments/assets/a009c914-2318-4aff-8fdb-30231c26be55" /> External Link Value|<img width="1865" height="1007" alt="master_ss_ext_link" src="https://github.com/user-attachments/assets/72f7d696-f189-4038-8857-00f66e04fb07" />|<img width="1873" height="1004" alt="ext_link_feature_child" src="https://github.com/user-attachments/assets/fab58a75-4aff-4cfd-9f8b-ab0993a04527" /> External Link Value(Page opened)|<img width="1857" height="605" alt="Screenshot From 2026-10-10 21-24-18" src="https://github.com/user-attachments/assets/771d75f9-969d-4161-a246-f96a4ae8cca4" />|<img width="1873" height="632" alt="Screenshot From 2026-10-11 00-43-56" src="https://github.com/user-attachments/assets/ee0c8dd2-9be9-45bc-9708-ea2fd1dbd72f" /> --- ##### Was generative AI tooling used to co-author this PR? <!-- If generative AI tooling has been used in the process of authoring this PR, please change below checkbox to `[X]` followed by the name of the tool, uncomment the "Generated-by". --> - [x] Yes (please specify the tool below) Not generated by AI, consulted the approach using Claude. <!-- Generated-by: [Tool Name] following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) --> --- * Read the **[Pull Request Guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-guidelines)** for more information. Note: commit author/co-author name and email in commits become permanently public when merged. * For fundamental code changes, an Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvement+Proposals)) is needed. * When adding dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x). * For significant user-facing changes create newsfragment: `{pr_number}.significant.rst`, in [airflow-core/newsfragments](https://github.com/apache/airflow/tree/main/airflow-core/newsfragments). You can add this file in a follow-up commit after the PR is created so you know the PR number. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
