sejal-gupta-ksolves opened a new pull request, #67327: URL: https://github.com/apache/airflow/pull/67327
* closes: #60867 **Problem** The "Triggered DAG" button only appeared after the parent task completed execution. During RUNNING/QUEUED states, the button was completely hidden. **Root Cause:** The underlying TriggerDagRunLink reads the target redirection URL directly from XCom metadata using a specific key. By default, this XCom entry was populated downstream during the task-runner's standard finalize() routine at the very end of the task instance lifecycle. **Solution:** Modified the execution routine to eagerly calculate and push the TriggerDagRunLink URL tracking payload to XCom using context["task_instance"].xcom_push right inside the active _trigger_dag_af_3 execution block, immediately after the target run initialization occurs and before the trigger exception is raised. This enables the FastAPI REST API /links endpoint to immediately serve the rich metadata payload, allowing the new Airflow 3 React UI to successfully render the clickable "Triggered DAG" navigation button the exact millisecond the child DAG is queued. <img width="1852" height="1123" alt="Screenshot from 2026-05-22 16-27-12" src="https://github.com/user-attachments/assets/6e18ad5a-4534-4e85-a584-0304f6a7c764" /> -- 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]
