You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/01/28 15:02:00 UTC

[GitHub] [airflow] Lorenzo-N opened a new issue #13954: Refresh DAG sometimes doesn't refresh the dag instantly.

Lorenzo-N opened a new issue #13954:
URL: https://github.com/apache/airflow/issues/13954


   **Apache Airflow version**: 2.0.0
   
   
   **Kubernetes version (if you are using kubernetes)**: NA
   
   **Environment**: Docker
   
   - **OS**: CentOS Linux 7 (Core)
   - **Python version**: 3.6.8
   
   **What happened**:
   Sometimes even if I refresh the dag with "Refresh DAG" button in UI, if I run the dag immediately Airflow runs previous dag.
   
   **What you expected to happen**:
   I expect that if I run a dag after clicking the refresh button, it runs the actual code, without waiting dag_dir_list_interval. The refresh should load the new content of the file removing it from the cache.
   
   **How to reproduce it**:
   The problem happens mostly if I have an empty dag and then I edit the file adding an operator. The steps to reproduce it are:
   - create a dag without operators
   - wait that airflow loads it (you can also run it)
   - then edit the file adding an operator
   - immediately click the "Refresh DAG" button
   - then click the "Trigger DAG" button
   
   If I follow these steps sometimes the dag executes the empty dag without operators (old code) instead of executing new code. If you wait and then run the dag again it runs the new dag with the operator.
   
   
   **Anything else we need to know**:
   If I do the opposite, that is if I have a dag with an operator and then I remove it, usually it works correctly, but seldom airflow set task_instances state to 'removed' giving subsequent errors.
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [airflow] eladkal commented on issue #13954: Refresh DAG sometimes doesn't refresh the dag instantly.

Posted by GitBox <gi...@apache.org>.
eladkal commented on issue #13954:
URL: https://github.com/apache/airflow/issues/13954#issuecomment-954416504


   I'm not able to reproduce.
   Can you please re-check against latest Airflow version?


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] Lorenzo-N closed issue #13954: Refresh DAG sometimes doesn't refresh the dag instantly.

Posted by GitBox <gi...@apache.org>.
Lorenzo-N closed issue #13954:
URL: https://github.com/apache/airflow/issues/13954


   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org