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
with Stats.timer() as timer:
                if self.using_sqlite:
                    self.processor_agent.run_single_parsing_loop()
                    
                    
                    self.log.debug("Waiting for processors to finish since we're using sqlite")
                    self.processor_agent.wait_until_finished()
                with create_session() as session:
                    num_queued_tis = self._do_scheduling(session)
                    self.executor.heartbeat()
                    session.expunge_all()
                    num_finished_events = self._process_executor_events(session=session)
                self.processor_agent.heartbeat()
                
                self.heartbeat(only_if_necessary=True)
                
                next_event = timers.run(blocking=False)
                self.log.debug("Next timed event is in %f", next_event)
            self.log.debug("Ran scheduling loop in %.2f seconds", timer.duration)
            if not is_unit_test and not num_queued_tis and not num_finished_events:
                
                
                
                time.sleep(min(self._processor_poll_interval, next_event))
            if loop_count >= self.num_runs > 0:
                self.log.info(
                    "Exiting scheduler loop as requested number of runs (%d - got to %d) has been reached",
                    self.num_runs,
                    loop_count,
                )