[英]Airflow - purge all the DAG entries from Web UI for all the deleted DAG files from dags_folder at once
After deleting multiple DAG files from the dags folder, need to run airflow delete_dag dag_id
for each DAG or delete the DAG entries one by one from the web UI.从
airflow delete_dag dag_id
文件夹中删除多个 DAG 文件后,需要为每个 DAG 运行airflow delete_dag dag_id
或从 Web UI 中一一删除 DAG 条目。
Instead of doing this, is there a functionality or command to purge the deleted DAGs at one go?是否有一种功能或命令可以一次性清除已删除的 DAG,而不是这样做?
You can always execute queries against your Airflow database directly;您始终可以直接对您的 Airflow 数据库执行查询; we have an Airflow process which cleans up our database periodically by removing entries from
log
, task_fail
, etc.我们有一个 Airflow 进程,它通过从
log
、 task_fail
等中删除条目来定期清理我们的数据库。
As with anything regarding making changes to your database, make sure you have a backup .与对数据库进行更改有关的任何事情一样,请确保您有一个备份.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.