amoghrajesh commented on PR #54225:
URL: https://github.com/apache/airflow/pull/54225#issuecomment-3199276674
@ashb I went ahead and made some changes here.
1. Moved the tests for dag cycle tester to SDK
2. There is a place in the dagbag where the `AirflowDagCycleException` is
caught but I do not think that the exception can reach there, although to be
safe and not have a situation where we miss that I am doing:
```
except Exception as e:
if type(e).__name__ == "AirflowDagCycleException":
self.log.exception("Cycle detected in DAG: %s", dag.dag_id)
else:
self.log.exception("Unexpected error bagging dag: %s",
dag.dag_id)
raise
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]