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/06/14 07:20:35 UTC

[GitHub] [airflow] ashb commented on a change in pull request #16368: Don't show stale Serialized DAGs if they are deleted in DB

ashb commented on a change in pull request #16368:
URL: https://github.com/apache/airflow/pull/16368#discussion_r650099563



##########
File path: airflow/models/dagbag.py
##########
@@ -199,7 +201,14 @@ def get_dag(self, dag_id, session: Session = None):
                     dag_id=dag_id,
                     session=session,
                 )
-                if sd_last_updated_datetime and sd_last_updated_datetime > self.dags_last_fetched[dag_id]:
+                if not sd_last_updated_datetime:
+                    self.log.warning("Serialized DAG does not exist for '%s'", dag_id)

Review comment:
       ```suggestion
                       self.log.warning("Serialized DAG %s no longer exists", dag_id)
   ```




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