Skip to content

Commit

Permalink
Use non-deprecated method when unpause DAG in the UI (#29475)
Browse files Browse the repository at this point in the history
(cherry picked from commit c1142a8)
  • Loading branch information
Taragolis authored and pierrejeambrun committed Mar 7, 2023
1 parent 573a3ec commit 8c4209b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/www/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1975,7 +1975,7 @@ def trigger(self, session=None):
is_dag_run_conf_overrides_params=is_dag_run_conf_overrides_params,
)

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:
Expand Down

0 comments on commit 8c4209b

Please sign in to comment.