Skip to content

Commit

Permalink
If node can't handle this action, put it back to available node list,…
Browse files Browse the repository at this point in the history
… so it can handle another action.
  • Loading branch information
felipecvo committed Jul 30, 2010
1 parent 003c1bb commit 8f02680
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/cloud_crowd/models/work_unit.rb
Expand Up @@ -54,6 +54,7 @@ def self.distribute_to_nodes
unit.cancel_reservation
end
work_units.push(unit)
available_nodes.push(node)
end
if work_units.any? && available_nodes.any?
filter = {:action => available_nodes.map {|node| node.actions }.flatten.uniq }
Expand Down

0 comments on commit 8f02680

Please sign in to comment.