lib/buildbox/agent.rb in buildbox-0.3.7 vs lib/buildbox/agent.rb in buildbox-0.3.8

- old
+ new

@@ -11,17 +11,14 @@ end def work builds = scheduled_builds - # Start off by letting each build know that it's been picked up - # by an agent. + # Run the builds one at a time builds.each do |build| + # Let the agent know that we're about to start working on this build @api.update_build(build, :agent_accepted => @access_token) - end - # Run the builds one at a time - builds.each do |build| Monitor.new(build, @api).async.monitor Runner.new(build).start end end