From da0444e5a34aefa9f2df4274cb410f06464e076e Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Fri, 17 Sep 2010 20:16:21 -0400 Subject: [PATCH] task execution engine: fix addition of new tasks dependencies of a task being added were filtered to remove already added ones all at once however, as each new dependency is added, the 'new' state of tasks could change this fix checks and adds dependencies one at a time --- tasks/Execute.scala | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tasks/Execute.scala b/tasks/Execute.scala index b80eb48c2..ea118f448 100644 --- a/tasks/Execute.scala +++ b/tasks/Execute.scala @@ -161,9 +161,11 @@ final class Execute[A[_] <: AnyRef](checkCycles: Boolean)(implicit view: NodeVie else { forward(node) = IDSet(active) - val newD = active filter isNew - newD foreach { x => addNew(x) } - active foreach { addReverse(_, node) } + for(a <- active) + { + addChecked(a) + addReverse(a, node) + } } post {