Source:
https://github.com/teamclairvoyant/airflow-scheduler-failover-controller
# Judge how the scheduler is running, is_scheduler_running
https://github.com/teamclairvoyant/airflow-scheduler-failover-controller/blob/master/scheduler_failover_controller/failover/failover_controller.py
# Metadata processing
https://github.com/teamclairvoyant/airflow-scheduler-failover-controller/blob/master/scheduler_failover_controller/failover/failover_controller.py