You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ephraimbuddy (via GitHub)" <gi...@apache.org> on 2023/04/12 19:33:10 UTC
[GitHub] [airflow] ephraimbuddy commented on a diff in pull request #30608: Deactivate DAGs deleted from within zipfiles
ephraimbuddy commented on code in PR #30608:
URL: https://github.com/apache/airflow/pull/30608#discussion_r1164558639
##########
airflow/models/dag.py:
##########
@@ -3375,9 +3374,8 @@ def deactivate_deleted_dags(cls, alive_dag_filelocs: list[str], session=NEW_SESS
dag_models = session.query(cls).all()
for dag_model in dag_models:
- if dag_model.fileloc is not None:
- if correct_maybe_zipped(dag_model.fileloc) not in alive_dag_filelocs:
- dag_model.is_active = False
+ if dag_model.fileloc is not None and dag_model.fileloc not in alive_dag_filelocs:
+ dag_model.is_active = False
Review Comment:
This change doesn't seem necessary. WDYT?
--
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