The GitHub Actions job "Tests" on airflow.git/fix/trigger-dag-button-visible-while-running has failed. Run started by GitHub user Arunodoy18 (triggered by Arunodoy18).
Head commit for run: a364eefb549b3f56242d725974970c117d7e081c / Arunodoy18 <[email protected]> Fix TriggerDagRunOperator extra link visibility during task execution The 'Triggered DAG' button was only appearing after the TriggerDagRunOperator task completed, even though the child DAG run was created while the task was still RUNNING. Root cause: XCom pushed during task execution wasn't immediately visible to API queries because it used a separate database session/transaction. Solution: Pass the session parameter from the executing method to xcom_push() to ensure the XCom is persisted in the same transaction and immediately queryable by the extra links API while the task is still RUNNING. Changes: - Import provide_session decorator and NEW_SESSION constant - Add @provide_session decorator to _trigger_dag_af_2 method - Pass session parameter to ti.xcom_push() call This minimal change ensures the 'Triggered DAG' button appears immediately when the child DAG run is created, providing better UX without requiring users to wait for task completion. Report URL: https://github.com/apache/airflow/actions/runs/21338623102 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
