You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2023/02/11 09:59:11 UTC

[airflow] branch main updated: Use non-deprecated method when unpause DAG in the UI (#29475)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new c1142a8f41 Use non-deprecated method when unpause DAG in the UI (#29475)
c1142a8f41 is described below

commit c1142a8f417b3250b6ecf598097d841f40ef6a32
Author: Andrey Anshin <An...@taragol.is>
AuthorDate: Sat Feb 11 13:59:03 2023 +0400

    Use non-deprecated method when unpause DAG in the UI (#29475)
---
 airflow/www/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow/www/views.py b/airflow/www/views.py
index 1b246e6e18..2ee9313727 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -2102,7 +2102,7 @@ class Airflow(AirflowBaseView):
                     recent_confs=recent_confs,
                 )
 
-        if unpause and dag.is_paused:
+        if unpause and dag.get_is_paused():
             models.DagModel.get_dagmodel(dag_id).set_is_paused(is_paused=False)
 
         try: