lib/rundock/operation/task.rb in rundock-0.4.15 vs lib/rundock/operation/task.rb in rundock-0.4.16

- old
+ new

@@ -10,10 +10,14 @@ scenario = Rundock::Builder::ScenarioBuilder.new(nil, nil).build_task( attributes[:task_info][i.to_sym], backend, Rundock::Attribute::NodeAttribute.new(attributes)) Logger.info("start task: #{i}") + + Logger.formatter.rec_lock + scenario.run + Logger.formatter.rec_unlock end end end end end