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



##########
File path: airflow/jobs/scheduler_job.py
##########
@@ -1374,6 +1363,7 @@ def _run_scheduler_loop(self) -> None:
         if not self.processor_agent:
             raise ValueError("Processor agent is not started.")
         is_unit_test: bool = conf.getboolean('core', 'unit_test_mode')
+        stale_dag_cleanup_timeout: int = conf.getint('scheduler', 
'stale_dag_cleanup_timeout', 600)

Review comment:
       ```suggestion
           stale_dag_cleanup_timeout = 
timedelta(seconds=conf.getint('scheduler', 'stale_dag_cleanup_timeout', 600))
   ```
   
   Lets not re-create the timedelta object more often than we need to.




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