Title: get_graph() RecursionError: maximum recursion depth exceeded · Issue #310 · dataiku/dataiku-api-client-python · GitHub
Open Graph Title: get_graph() RecursionError: maximum recursion depth exceeded · Issue #310 · dataiku/dataiku-api-client-python
X Title: get_graph() RecursionError: maximum recursion depth exceeded · Issue #310 · dataiku/dataiku-api-client-python
Description: my conf: ubuntu v 22. lts Dataiku On Premise v 13.1.2 Exemple The get_graph method in the DSSProjectFlow class does not support flows that have loops, causing a RecursionError when trying to get the flow graph for such projects. function...
Open Graph Description: my conf: ubuntu v 22. lts Dataiku On Premise v 13.1.2 Exemple The get_graph method in the DSSProjectFlow class does not support flows that have loops, causing a RecursionError when trying to get th...
X Description: my conf: ubuntu v 22. lts Dataiku On Premise v 13.1.2 Exemple The get_graph method in the DSSProjectFlow class does not support flows that have loops, causing a RecursionError when trying to get th...
Opengraph URL: https://github.com/dataiku/dataiku-api-client-python/issues/310
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"get_graph() RecursionError: maximum recursion depth exceeded","articleBody":"my conf:\r\nubuntu v 22. lts\r\nDataiku On Premise v 13.1.2\r\n\r\n\r\n### Exemple\r\n\r\nThe `get_graph` method in the `DSSProjectFlow` class does not support flows that have loops, causing a `RecursionError` when trying to get the flow graph for such projects.\r\n\r\nfunction's reference : https://developer.dataiku.com/latest/api-reference/python/flow.html#dataikuapi.dss.flow.DSSProjectFlow.get_graph\r\n\r\n### Steps to Reproduce\r\n\r\n1. Create a project in Dataiku where a recipe has a dataset as output (last stage in the flow) but used as input of another recipe. Both input and output, forming a loop.\r\n2. Use the API to get the flow graph:\r\n ```python\r\n import dataiku\r\n \r\n client = dataiku.api_client()\r\n project = client.get_project(\"YOUR_PROJECT_KEY\")\r\n flow = project.get_flow()\r\n graph = flow.get_graph() # This line causes the RecursionError below\r\n\r\nDSSProjectFlowGraph.get_items_in_traversal_order.\u003clocals\u003e.add_from(graph_node)\r\n 776 predecessor_node = self.nodes[predecessor_ref]\r\n 777 if not in_set(predecessor_node):\r\n--\u003e 778 add_from(predecessor_node)\r\n 780 # Then add ourselves\r\n 781 if not in_set(graph_node):\r\n\r\nDSSProjectFlowGraph.get_items_in_traversal_order.\u003clocals\u003e.add_from(graph_node)\r\n 775 for predecessor_ref in graph_node[\"predecessors\"]:\r\n 776 predecessor_node = self.nodes[predecessor_ref]\r\n--\u003e 777 if not in_set(predecessor_node):\r\n 778 add_from(predecessor_node)\r\n 780 # Then add ourselves\r\n\r\nDSSProjectFlowGraph.get_items_in_traversal_order.\u003clocals\u003e.in_set(obj)\r\n 767 def in_set(obj):\r\n 768 for candidate in ret:\r\n--\u003e 769 if candidate[\"type\"] == obj[\"type\"] and candidate[\"ref\"] == obj[\"ref\"]:\r\n 770 return True\r\n 771 return False\r\n\r\n**RecursionError: maximum recursion depth exceeded in comparison**\r\n\r\nAs a result, flows using data to rewrite the same directory become problematic only in certain cases\r\noutput dataset \u003e used as intermediate dataset of a recipe upstream of this output dataset. \r\nbut not problematic in other cases, such as;\r\ninput folder \u003e used as output folder at the end of the flow.","author":{"url":"https://github.com/MFE-DSS","@type":"Person","name":"MFE-DSS"},"datePublished":"2024-11-11T14:58:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/310/dataiku-api-client-python/issues/310"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4cacf5d9-28a4-8f31-b5ec-65954ad4cac5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8BEE:1133E2:283138:331DB8:69915078 |
| html-safe-nonce | e9fdf0b63bc1d061f012aee4c43740add319d8b6ad1dc62111040a67dd6459de |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QkVFOjExMzNFMjoyODMxMzg6MzMxREI4OjY5OTE1MDc4IiwidmlzaXRvcl9pZCI6IjM2OTQ1OTMxMDM4NjY0NTAwNDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 95ed053687c39ae29ee796fc932de4f122028094f397e002599f36a50beb6d93 |
| hovercard-subject-tag | issue:2649590947 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/dataiku/dataiku-api-client-python/310/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b52c135d5209a0e35f28900e2619c35b6fda4014b852d7d4d0b8d5aca3101597/dataiku/dataiku-api-client-python/issues/310 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b52c135d5209a0e35f28900e2619c35b6fda4014b852d7d4d0b8d5aca3101597/dataiku/dataiku-api-client-python/issues/310 |
| og:image:alt | my conf: ubuntu v 22. lts Dataiku On Premise v 13.1.2 Exemple The get_graph method in the DSSProjectFlow class does not support flows that have loops, causing a RecursionError when trying to get th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MFE-DSS |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/dataiku/dataiku-api-client-python git https://github.com/dataiku/dataiku-api-client-python.git |
| octolytics-dimension-user_id | 2335170 |
| octolytics-dimension-user_login | dataiku |
| octolytics-dimension-repository_id | 40004578 |
| octolytics-dimension-repository_nwo | dataiku/dataiku-api-client-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40004578 |
| octolytics-dimension-repository_network_root_nwo | dataiku/dataiku-api-client-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width