Complete the code to enable the scheduler in Airflow's configuration for high availability.
[scheduler]
enabled = [1]Setting enabled = True in the scheduler section activates the scheduler, which is necessary for high availability setups.
Complete the command to start the Airflow scheduler in high availability mode.
airflow scheduler [1]The --daemon flag runs the scheduler in the background, which is typical for high availability setups.
Fix the error in the Airflow configuration to enable the executor for high availability.
[core]
executor = [1]ExecutorThe CeleryExecutor is used for high availability as it supports distributed task execution.
Fill both blanks to configure the database connection string for Airflow high availability.
sql_alchemy_conn = [1]://[2]@localhost/airflow_db
The connection string format is dialect+driver://username:password@host/dbname. For example, postgresql+psycopg2://user:password@localhost/airflow_db.
Fill all three blanks to create a dictionary comprehension that maps worker names to their status if status is 'active' in Airflow high availability monitoring.
worker_status = { [1]: [2] for [3] in workers if [2] == 'active' }This comprehension creates a dictionary where keys are worker names and values are their status, but only for active workers.