The Airflow scheduler, a core airflow component, is the most important part of airflow, as it handles all the interactions with tasks, dagruns and the executor, meaning that it has a lot of responsibilities.
Some of the major responsibilities include (listed in the order they are listed in the SchedulerJobRunner code):
Most of the logic lies in the second major responsibility, being, scheduling and running tasks.
This responsibility is the one which takes the most amount of time, and where the improvements will make the most impact.
Improving task throughput and reducing starvation of tasks, will benefit all workflows, and reducing the lag and total dagrun time, by reducing the scheduled tasks time.
What change do you propose to make?
What problem does it solve?
N/A
The Airflow scheduler's performance improves, by increasing task throughput and allowing multiple schedulers to run workloads simultaneously, increasing the benefit of scaling out the scheduler.