Skip to content

Commit

Permalink
Fix create node queue
Browse files Browse the repository at this point in the history
  • Loading branch information
JCZuurmond committed Oct 29, 2024
1 parent 477292a commit 6c03866
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/databricks/labs/ucx/assessment/sequencing.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,6 @@ def _create_node_queue(self, incoming: dict[MigrationNodeKey, set[MigrationNode]
first.
"""
priority_queue = PriorityQueue()
for node_key, incoming_nodes in incoming.items():
priority_queue.put(len(incoming_nodes), self._nodes[node_key])
for node_key, node in self._nodes.items():
priority_queue.put(len(incoming[node_key]), self._nodes[node_key])
return priority_queue

0 comments on commit 6c03866

Please sign in to comment.