Browse Source

Merge branch 'kahn-sort-fifo' into 'master'

Kahn sort: pop FIFO so execution order matches the previous tree walk

See merge request josephbburg/mantis!12
josephbburg 1 tuần trước cách đây
mục cha
commit
874083c23a
1 tập tin đã thay đổi với 2 bổ sung và 2 xóa
  1. 2 2
      execution/readtree.py

+ 2 - 2
execution/readtree.py

@@ -661,8 +661,8 @@ def sort_execution(nodes, error_popups):
     
     processed_count = 0
     while(xForm_pass):
-        # for some reason using popleft here breaks everything... better not push my luck/
-        n = xForm_pass.pop()
+        n = xForm_pass.popleft()
+        # if n.execution_prepared: continue
         n.execution_prepared = True
         sorted_nodes.append(n)
         processed_count+=1