lib/ci/queue/static.rb in ci-queue-0.44.0 vs lib/ci/queue/static.rb in ci-queue-0.45.0
- old
+ new
@@ -76,9 +76,17 @@
def size
@queue.size
end
+ def remaining
+ @queue.size
+ end
+
+ def running
+ 1
+ end
+
def poll
while !@shutdown && config.circuit_breakers.none?(&:open?) && !max_test_failed? && test = @queue.shift
yield index.fetch(test)
end
end