Bundles¶
使用 GitDagBundle
在您的 Airflow 的 [dag_processor] dag_bundle_config_list
中配置一个 Git bundle。
使用 GitDagBundle 的示例
JSON 格式示例:
export AIRFLOW__DAG_PROCESSOR__DAG_BUNDLE_CONFIG_LIST='[
{
"name": "my-git-repo",
"classpath": "airflow.providers.git.bundles.git.GitDagBundle",
"kwargs": {
"subdir": "dags",
"tracking_ref": "main",
"refresh_interval": 3600
}
}
]'