hi there,
I just met a issue when I use the systemd way to start the asfc, logs as following:
Mar 30 12:24:49 ip-xxx scheduler_failover_controller: File "/usr/local/bin/scheduler_failover_controller", line 7, in
Mar 30 12:24:49 ip-xxx scheduler_failover_controller: args.func(args)
Mar 30 12:24:49 ip-xxx scheduler_failover_controller: File "/usr/local/lib/python3.7/site-packages/scheduler_failover_controller/bin/cli.py", line 92, in start
Mar 30 12:24:49 ip-xxx scheduler_failover_controller: scheduler_nodes_in_cluster, poll_frequency, metadata_service, emailer, failover_controller = get_all_scheduler_failover_controller_objects()
Mar 30 12:24:49 ip-xxx scheduler_failover_controller: File "/usr/local/lib/python3.7/site-packages/scheduler_failover_controller/bin/cli.py", line 33, in get_all_scheduler_failover_controller_objects
Mar 30 12:24:49 ip-xxx scheduler_failover_controller: logger=logger
Mar 30 12:24:49 ip-xxx scheduler_failover_controller: File "/usr/local/lib/python3.7/site-packages/scheduler_failover_controller/failover/failover_controller.py", line 21, in init
Mar 30 12:24:49 ip-xxx scheduler_failover_controller: self.airflow_scheduler_stop_command = configuration.get_airflow_scheduler_stop_command()
Mar 30 12:24:49 ip-xxx scheduler_failover_controller: File "/usr/local/lib/python3.7/site-packages/scheduler_failover_controller/configuration.py", line 142, in get_airflow_scheduler_stop_command
Mar 30 12:24:49 ip-xxx scheduler_failover_controller: return self.get_scheduler_failover_config("AIRFLOW_SCHEDULER_STOP_COMMAND").replace("\;", ";")
Mar 30 12:24:49 ip-xxx scheduler_failover_controller: AttributeError: 'NoneType' object has no attribute 'replace'
Mar 30 12:24:49 ip-xxx systemd: scheduler_failover_controller.service: main process exited, code=exited, status=1/FAILURE
and i checked the cfg file as following, it seems ok.
#Command to use when trying to stop a Scheduler instance on a node
#airflow_scheduler_stop_command = for pid in ps -ef | grep "airflow scheduler" | awk '{print $2}'
; do kill -9 $pid ; done
airflow_scheduler_stop_command = sudo systemctl stop airflow-scheduler
so could you help have a look at this problem ? thanks in advance.