Skip to content

Commit

Permalink
status: check type
Browse files Browse the repository at this point in the history
if root has provider set not on self, it gets lost
  • Loading branch information
markokr committed Jan 14, 2022
1 parent 14dc4d6 commit c1f0369
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pgq/cascade/nodeinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ def _prepare_tree(self):

root_list = []
for node in self.node_map.values():
if node.provider_node \
if node.type != 'root' \
and node.provider_node \
and node.provider_node != node.name \
and node.provider_node in self.node_map:
p = self.node_map[node.provider_node]
Expand Down

0 comments on commit c1f0369

Please sign in to comment.