arbass22 opened a new issue #15439:
URL: https://github.com/apache/airflow/issues/15439


   **Apache Airflow version**:
   2.0.0
   
   
   **What happened**:
   
   The state of a DAG run does not update while the DAG is paused.   The 
_tasks_ continue to run if the DAG run was kicked off before the DAG was paused 
and eventually finish and are marked correctly.  The DAG run state does not get 
updated and stays in Running state until the DAG is unpaused.
   
   Screenshot:
   ![Screen Shot 2021-04-19 at 2 18 56 
PM](https://user-images.githubusercontent.com/10891729/115284288-7b9c6200-a11a-11eb-98ab-5ce86c457a17.png)
   
   
   **What you expected to happen**:
   I feel like the more intuitive behavior would be to let the DAG run continue 
if it is paused, and to mark the DAG run state as completed the same way the 
tasks currently behave.
   
   **How to reproduce it**:
   It can be repoduced using the example DAG in the docs: 
https://airflow.apache.org/docs/apache-airflow/stable/tutorial.html
   You would kick off a DAG run, and then paused the DAG and see that even 
though the tasks finish, the DAG run is never marked as completed while the DAG 
is paused.
   
   I have been able to reproduce this issue 100% of time.  It seems like logic 
to update the DAG run state simply does not execute while the DAG is paused.
   
   
   **Anything else we need to know**:
   Some background on my use case:
   As part of our deployment, we use the Airflow rest API to pause a DAG and 
then use the api to check the DAG run state and wait until all dag runs are 
finished.  Because of this bug, any DAG run in progress when we paused the DAG 
will never be marked as completed.  
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to