ci-queue 0.45.0 → 0.46.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ci/queue/static.rb +5 -4
- data/lib/ci/queue/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea479767ef84b35f96de1e28bd5e4a79027bb90e7a6d06c101056f6486a63e8b
|
4
|
+
data.tar.gz: c932bac995769751c422790553a063685f4690aa5f7ceffb07ce04174e88bfe2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf13fd4ee60aeff7024e2af393986b19315b0b006a233b00c6468758ada80242344c405b0954bd0ecd3b17f9511048b3fe49049ac342d2b9f3743963348c84f9
|
7
|
+
data.tar.gz: f0e9933fd3ccff6fb536717cd249cad212d53deaa4c72681fe36ea54247f015c8c9b960870f8b9fd3a1f318e103ae67aeb380c8151c1a3ea121ed7ec49a96b47
|
data/lib/ci/queue/static.rb
CHANGED
@@ -63,7 +63,7 @@ module CI
|
|
63
63
|
end
|
64
64
|
|
65
65
|
def expired?
|
66
|
-
(@created_at.to_f TEN_MINUTES) < CI::Queue.time_now.to_f
|
66
|
+
(@created_at.to_f + TEN_MINUTES) < CI::Queue.time_now.to_f
|
67
67
|
end
|
68
68
|
|
69
69
|
def populated?
|
@@ -83,13 +83,14 @@ module CI
|
|
83
83
|
end
|
84
84
|
|
85
85
|
def running
|
86
|
-
1
|
86
|
+
@reserved_test ? 1 : 0
|
87
87
|
end
|
88
88
|
|
89
89
|
def poll
|
90
|
-
while !@shutdown && config.circuit_breakers.none?(&:open?) && !max_test_failed? &&
|
91
|
-
yield index.fetch(
|
90
|
+
while !@shutdown && config.circuit_breakers.none?(&:open?) && !max_test_failed? && @reserved_test = @queue.shift
|
91
|
+
yield index.fetch(@reserved_test)
|
92
92
|
end
|
93
|
+
@reserved_test = nil
|
93
94
|
end
|
94
95
|
|
95
96
|
def exhausted?
|
data/lib/ci/queue/version.rb
CHANGED