lib/cloud_crowd/models/work_unit.rb in cloud-crowd-0.7.5 vs lib/cloud_crowd/models/work_unit.rb in cloud-crowd-0.7.6

- old
+ new

@@ -40,10 +40,11 @@ loop do # Find the available nodes, and determine what actions we're capable # of running at the moment. available_nodes = NodeRecord.available.to_a - available_actions = available_nodes.map {|node| node.actions }.flatten.uniq + available_actions = NodeRecord.available_actions + filter = "action in (#{available_actions.map{|a| "'#{a}'"}.join(',')})" # If there aren't any available nodes or actions don't bother doing anything. return if available_nodes.empty? or available_actions.empty?