How to run one airflow task and all its dependencies?

ぐ巨炮叔叔 提交于 2019-12-05 01:39:14

You can run a task independently by using -i/-I/-A flags along with the run command.

But yes the design of airflow does not permit running a specific task and all its dependencies.

You can backfill the dag by removing non-related tasks from the DAG for testing purpose

A bit of a workaround but in case you have given your tasks task_id-s consistently you can try the backfilling from Airflow CLI (Command Line Interface):

airflow backfill -t TASK_REGEX ... dag_id

where TASK_REGEX corresponds to the naming pattern of the task you want to rerun and its dependencies.

(remember to add the rest of the command line options, like --start_date).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!