feat: ✨ add deadlock detection to find_next
This commit is contained in:
parent
1fa8c0972b
commit
55030a7829
1 changed files with 5 additions and 0 deletions
|
@ -106,6 +106,8 @@ module Comfpile
|
||||||
end
|
end
|
||||||
|
|
||||||
def processing_stack_find_next()
|
def processing_stack_find_next()
|
||||||
|
return nil if @processing_stack.empty?
|
||||||
|
|
||||||
i = 0
|
i = 0
|
||||||
@processing_stack.reverse_each do |a|
|
@processing_stack.reverse_each do |a|
|
||||||
i += 1
|
i += 1
|
||||||
|
@ -115,6 +117,9 @@ module Comfpile
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# TODO: Fix up later-on for parallel runner capabilities
|
||||||
|
raise "Deadlock found, no item was willing to run!"
|
||||||
|
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue