Airflow task 指定执行的worker节点
1、airflow.cfg:executor = CeleryExecutor2、启动worker时添加-q 队列名:airflow celery worker -q kettle_carteshell = BashOperator( task_id = 'shell', queue = '队列名', bash_command = 'date ', dag = dag)worker可以指定一个或多个任务队列。启动工作程序时(使用命令airflow worker)
转载
2022-06-02 15:04:22 ·
1507 阅读 ·
0 评论