kaxil commented on a change in pull request #7424:
URL: https://github.com/apache/airflow/pull/7424#discussion_r414148815



##########
File path: airflow/models/serialized_dag.py
##########
@@ -144,22 +144,22 @@ def remove_dag(cls, dag_id: str, session=None):
 
     @classmethod
     @provide_session
-    def remove_deleted_dags(cls, alive_dag_filelocs: List[str], session=None):
-        """Deletes DAGs not included in alive_dag_filelocs.
-
-        :param alive_dag_filelocs: file paths of alive DAGs
-        :param session: ORM Session
+    def remove_stale_dags(cls, expiration_date, session=None):
         """
-        alive_fileloc_hashes = [
-            DagCode.dag_fileloc_hash(fileloc) for fileloc in 
alive_dag_filelocs]
+        Deletes Serialized DAGs that were last touched by the scheduler before
+        the expiration date.  These DAGs were likely deleted.

Review comment:
       ```suggestion
           the expiration date. These DAGs were likely deleted.
   ```




----------------------------------------------------------------
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:
[email protected]


Reply via email to