气流可以在不重新启动调度程序的情况下加载 dags 文件 [英] Can airflow load dags file without restart scheduler

查看:59
本文介绍了气流可以在不重新启动调度程序的情况下加载 dags 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

就我而言,我在 dags 路径下写了一个 dag 文件.启动气流调度程序后,它成功加载了 dag 文件.但是,更改 dag 文件后无法加载 dag 文件.有什么建议可以在不重启调度程序的情况下加载 dag 文件吗?

In my case, i write a dag file under the dags path. After start the airflow scheduler, it successfully loads the dag file. However, it fialed to load dag file after changing dag file. Is there any suggestion to loade dag file without restart scheduler?

推荐答案

你的 DAG 应该在调度程序心跳上自动重新加载,这将始终在 DagRun 启动之前完成.

Your DAG should be automatically reloaded on the scheduler heartbeat and this will always be done before a DagRun is started.

可能需要一段时间才能在 Web 界面中显示 DAG 中的更改,您可以通过按 Dag 视图右上角的刷新按钮在 UI 中手动重新加载 Dag

It can take a while before changes in the DAG are also shown in the web interface, you can manually reload the Dag in the UI by pressing the refresh button in the top right of the Dag view

这篇关于气流可以在不重新启动调度程序的情况下加载 dags 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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