Arunodoy18 opened a new pull request, #61045:
URL: https://github.com/apache/airflow/pull/61045

   Summary:
   
   In Airflow 3.1.6, the UI displays the “Triggered DAG” button for 
TriggerDagRunOperator only after the task reaches a terminal state. However, 
the triggered DAG run is created earlier, while the task is still running.
   
   This PR updates the UI to surface the “Triggered DAG” link as soon as the 
child DAG run exists, without waiting for task completion or requiring a page 
refresh.
   
   Problem:
   TriggerDagRunOperator creates a child DAG run while the task is still in the 
RUNNING state
   The Airflow UI delays rendering the “Triggered DAG” button until the task 
finishes
   This creates a mismatch between backend state and UI visibility and makes 
navigation to the triggered DAG unnecessarily delayed
   
   Solution:
   The UI logic is adjusted to determine the availability of the “Triggered 
DAG” button based on the existence of the child DAG run rather than the parent 
task’s terminal state.
   This change:
   Does not modify TriggerDagRunOperator execution behavior
   Does not affect scheduling or DAG run creation
   Improves UI consistency and user experience
   Backward Compatibility
   No breaking changes
   Existing DAGs continue to work as before, with improved UI feedback
   Tests
   
   Updated / added coverage to ensure the triggered DAG link is visible while 
the operator task is still running
    
   Related issue 
   Closes #60867


-- 
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]

Reply via email to