Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

airflow.exceptions.AirflowException: Cycle detected in DAG. Faulty task

i am running the airflow pipeline but codes looks seems good but actually i'm getting the airflow.exceptions.AirflowException: Cycle detected in DAG. Faulty task: can u please help to resolve this issue

like image 638
prasanna Kumar Avatar asked Aug 17 '17 09:08

prasanna Kumar


2 Answers

This can happen due to duplicate task_id'a in multiple tasks.

like image 191
Sunil Kumar Jhajhria Avatar answered Oct 15 '22 08:10

Sunil Kumar Jhajhria


Without the code, it's kind of hard to help you. However, this means that you have a loop in your DAG. Generally, thie error happens when one of your task has a downstream task whose own downstream chain includes it again (A calls B calls C calls D calls A again, for example). That's not permitted by Airflow (and DAGs in general).

like image 38
faeder Avatar answered Oct 15 '22 06:10

faeder