无需Web服务器即可重新启动apag气流 [英] Refreshing dags without web server restart apache airflow

查看:82
本文介绍了无需Web服务器即可重新启动apag气流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何方法可以重新加载作业而不必重新启动服务器?

Is there any way to reload the jobs without having to restart the server?

推荐答案

在您的 airflow.cfg ,您可以通过以下两种配置来控制此行为:

In your airflow.cfg, you've these two configurations to control this behavior:

# after how much time a new DAGs should be picked up from the filesystem
min_file_process_interval = 0
dag_dir_list_interval = 60

您可能必须重新加载Web服务器,调度程序和工作程序才能使新配置生效。

You might have to reload the web-server, scheduler and workers for your new configuration to take effect.

这篇关于无需Web服务器即可重新启动apag气流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆