【发布时间】:2016-08-03 17:29:33
【问题描述】:
我希望将另一个 DAG 添加到现有的 Airflow 服务器。服务器当前正在使用 LocalExecutor,但我可能希望我的 DAG 使用 CeleryExecutor。配置文件airflow.cfg好像只允许一个executor:
# The executor class that airflow should use. Choices include
# SequentialExecutor, LocalExecutor, CeleryExecutor
executor = LocalExecutor
是否可以配置 Airflow 以使现有 DAG 可以继续使用 LocalExecutor 而我的新 DAG 可以使用 CeleryExecutor 或自定义执行器类?我没有找到任何人这样做的例子,也没有在 Airflow 文档中看到任何内容。
【问题讨论】:
-
是的。使用气流 2.x 。已经在这里回答了stackoverflow.com/a/70861797/14091289
标签: airflow