Taragolis commented on code in PR #39159:
URL: https://github.com/apache/airflow/pull/39159#discussion_r1574840593


##########
airflow/dag_processing/manager.py:
##########
@@ -599,7 +599,10 @@ def _run_parsing_loop(self):
 
             if self.standalone_dag_processor:
                 self._fetch_callbacks(max_callbacks_per_loop)
-            self._scan_stale_dags()
+
+            # this variable gives us flexibility to purge stale dags or not.
+            if not conf.get("core", "disable_scan_stale_dags", fallback=None):

Review Comment:
   ```suggestion
               if not conf.getboolean("core", "disable_scan_stale_dags", 
fallback=False):
   ```
   
   We have a parser for the potential boolean, as well as better to provide 
default value explicitly



-- 
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-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to