-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[KED-2477] Simplify debugging of circular dependencies #383
Comments
Thanks @clstaudt! This is a really good point you've raised. Interesting.
The error message solution is probably the best. I've assigned this issue a JIRA ticket so that it can be escalated within the team, and we'll discuss it at the next backlog grooming/technical design session. |
@clstaudt Thanks for flagging this. The layering system is meant to be unidirectional and not have circular dependencies in your graph. The layers don't have any meaning in Kedro's code and are only used by Viz, that's why it manifested itself in Viz. One easy way to avoid having circular dependencies is to never have a node connecting a higher layer into a lower layer. The error message is not very friendly and will be fixed with the next release, thanks for spotting that! |
Hi @clstaudt - it will be while before this gets released, but we've recently made a lot more progress in this regard and will be in a good place to surface useful error messages on CLI side and eventually the front end. |
We've solved this in #584. Check the |
Is the actual debugging already in? Otherwise, maybe this issue could be opened? |
@tdhooghe could you tell us more about the error you're experiencing? |
Definitely! This one: According to the notes in #584, it was planned to make the debug message here more verbose, and therefore this issue was closed. As this currently is not the case, I was wondering if there are still any plans to include this? |
I actually think this is a different issue - it's saying that the layers applied in the catalog create a loop. I.e. Layer 1 -> Layer 2 -> Layer 1. In truth - the easiest way to debug this is to do |
Ah alright, my apologies in that case. I fixed it by logging EDIT: and thanks for the debug suggestion btw! |
Oh interesting, love that you wen't that deep! We're always keen to get new contributors. Would you mind raising an Issue on this repo so we can understand what's happened in detail. |
Done! See #2125 |
Description
kedro viz
fails if circular dependencies between layers exist.Example:
At this point a graph visualization of the pipeline would really help to spot and remove the cycle, but... you see the problem, there is a circular dependency here too.
Context
Circular dependencies are easy to introduce by accident in complex pipelines and difficult to find. They do not necessarily lead to pipeline failure with
kedro run
, so they turn up much later when trying to runkedro viz
again.Possible Implementation
Possible Alternatives
This partially helped me find a circular dependency, but still required additional knowledge to fix it:
The text was updated successfully, but these errors were encountered: