airflow.cfg上的气流hide_paused_dags_by_default不起作用

时间:2018-11-30 02:36:39

标签: python etl airflow

我想在UI上隐藏所有暂停的DAG,但是airflow.cfg上的配置似乎不起作用。

# By default, the webserver shows paused DAGs. Flip this to hide paused
# DAGs by default
hide_paused_dags_by_default = True #False by default

到目前为止,我已采取一些步骤使其生效:

  • 重新启动气流Web服务器,调度程序和工作程序
  • 删除airflow.cfg并执行airflow initdb(拼命移动)

1 个答案:

答案 0 :(得分:0)

在使用systemd时,请检查是否所有气流过程都被杀死

systemctl status airflow-webserver
systemctl status airflow-scheduler
systemctl status airflow-worker

# Stop them if they are "active" 
systemctl stop airflow-webserver
systemctl stop airflow-scheduler
systemctl stop airflow-worker

还使用ps aux | grep airflow

进行验证

然后更改您的airflow.cfg文件并重新运行所有气流服务

systemctl restart airflow-webserver
systemctl restart airflow-scheduler
systemctl restart airflow-worker