lib/ci/queue/static.rb in ci-queue-0.13.3 vs lib/ci/queue/static.rb in ci-queue-0.13.4
- old
+ new
@@ -48,18 +48,18 @@
end
def poll
while !config.circuit_breaker.open? && test = @queue.shift
yield index.fetch(test)
- @progress += 1
end
end
def exhausted?
@queue.empty?
end
def acknowledge(test)
+ @progress += 1
true
end
def requeue(test)
test_key = test.id