dvd9604 opened a new issue, #60069:
URL: https://github.com/apache/airflow/issues/60069

   ### Apache Airflow version
   
   3.1.5
   
   ### If "Other Airflow 3 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   In Airflow `3.1.5` with `apache-airflow-providers-standard==1.10.1`, the UI 
does not display the `Triggered DAG` button for a `TriggerDagRunOperator` while 
the task is waiting for the triggered DAG to complete. Post completion of the 
triggered DAG the link/button becomes visibile. 
   
   During waiting period
   <img width="1470" height="875" alt="Image" 
src="https://github.com/user-attachments/assets/1ac1d6dd-28d0-4667-ae01-f3faea9d636f";
 />
   
   Post Completion
   <img width="1470" height="879" alt="Image" 
src="https://github.com/user-attachments/assets/6227ecd9-ccf6-4844-b43f-779bee0f4965";
 />
   
   ### What you think should happen instead?
   
   The Triggered DAG button should be visible once the triggered DAG has been 
created not only post completion.
   
   
   ### How to reproduce
   
   Create two DAG files 
   
   dags/trigger_dag.py
   
   ```python
   from datetime import datetime
   
   from airflow.sdk import DAG
   from airflow.providers.standard.operators.trigger_dagrun import 
TriggerDagRunOperator
   
   with DAG(
       dag_id="repro_trigger_dag",
       start_date=datetime(2024, 1, 1),
       schedule=None,
       catchup=False,
       tags=['reproduce']
   ) as dag:
       TriggerDagRunOperator(
           task_id="trigger_dag_and_wait",
           trigger_dag_id="repro_target_dag",
           wait_for_completion=True,  # wait for it to complete
           reset_dag_run=True,        
       )
   ```
   
   dags/target_dag.py
   
   ```python
   from datetime import datetime
   
   from airflow.sdk import DAG
   from airflow.operators.bash import BashOperator
   
   
   with DAG(
       dag_id="repro_target_dag",
       start_date=datetime(2024, 1, 1),
       schedule=None,
       catchup=False,
       tags=['reproduce']
   ) as dag:
       sleep = BashOperator(task_id="sleep", bash_command="sleep 10; echo 
'Slept for 10 seconds'")
   ```
   Steps 
   1. Start airflow and ensure both DAGs are enabled/unpaused
   2. Trigger the repro_trigger_dag from the UI
   3. Navigate to Details section of the task instance in the UI
   4. Note the missing button/link for Triggered DAG
   5. Wait for task to complete
   6. Refresh detail page and see missing/button Triggered DAG appear
   
   
   ### Operating System
   
   MAC OS
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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