https://github.com/apache/airflow/pull/12139 added some new params to the scheduler -- we have "cursory" docs for them in the comments in the config file, but we should have a more details docs in the scheduler.rst page.
airflow/jobs/scheduler_job.py
pickle_dags=pickle_dags,
            async_mode=async_mode,
        )
        try:
            self.executor.job_id = self.id
            self.executor.start()
            self.register_signals()
            
            self.processor_agent.start()
            execute_start_time = timezone.utcnow()
            self._run_scheduler_loop()
            
            self.processor_agent.terminate()
            
            
            
            if self.processor_agent.all_files_processed:
                self.log.info(
                    "Deactivating DAGs that haven't been touched since %s", execute_start_time.isoformat()
                )
                models.DAG.deactivate_stale_dags(execute_start_time)
            self.executor.end()
            settings.Session.remove()  
        except Exception:  
            self.log.exception("Exception when executing SchedulerJob._run_scheduler_loop")
        finally:
            self.processor_agent.end()
            self.log.info("Exited execute loop")
    @staticmethod
    def _create_dag_file_processor(