lib/buildbox/server.rb in buildbox-0.6.2 vs lib/buildbox/server.rb in buildbox-0.7.beta1

- old
+ new

@@ -3,13 +3,14 @@ module Buildbox class Server INTERVAL = 5 def initialize(config = Buildbox.config, logger = Buildbox.logger) - @config = config - @logger = logger + @config = config + @logger = logger @supervisors = [] + @iterations = 0 end def start Celluloid.logger = @logger Celluloid::Actor[:artifact_poster_pool] = Artifact::Poster.pool @@ -22,9 +23,11 @@ loop do @supervisors.each do |supervisor| supervisor.actors.first.async.process end + + GC.start wait INTERVAL end end