ci-queue 0.91.0 → 0.92.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ci/queue/redis/base.rb +6 -1
- 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: add1590f9cc361b896a70a61c456eb18f3bdcf9b6fd58aaf1432aa276c2cef48
|
|
4
|
+
data.tar.gz: 5a6ce1545cefa80a46b499286fb7de228a2c7c35c507af1e10728389f1951aac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 90a0e14eb954c3fba2f54eb680a523072a518d92aa2fa56584a93568f812f60f2ba7d6a656eba0370a5be8ff5da42c03727307b854edced06ad7e15e31f2eab3
|
|
7
|
+
data.tar.gz: '0716598054eb0b32c0453debb67a47656b266d35c14bf85a42e66503216c1617868d9dd081fc738852f74a31f66d622825523b451c0e6ab3fc3fcacd287aa162'
|
data/Gemfile.lock
CHANGED
data/lib/ci/queue/redis/base.rb
CHANGED
|
@@ -266,6 +266,11 @@ module CI
|
|
|
266
266
|
class HeartbeatProcess
|
|
267
267
|
MAX_RESTART_ATTEMPTS = 3
|
|
268
268
|
|
|
269
|
+
# Cached command marker. Passing this frozen String instead of the
|
|
270
|
+
# :tick! Symbol avoids allocating a 'tick!' String (from Symbol#to_s)
|
|
271
|
+
# on every heartbeat, which fires once per running test per worker.
|
|
272
|
+
TICK_COMMAND = 'tick!'.freeze
|
|
273
|
+
|
|
269
274
|
def initialize(redis_url, zset_key, owners_key, leases_key)
|
|
270
275
|
@redis_url = redis_url
|
|
271
276
|
@zset_key = zset_key
|
|
@@ -314,7 +319,7 @@ module CI
|
|
|
314
319
|
end
|
|
315
320
|
|
|
316
321
|
def tick!(id, lease)
|
|
317
|
-
send_message(
|
|
322
|
+
send_message(TICK_COMMAND, id: id, lease: lease.to_s)
|
|
318
323
|
@restart_attempts = 0
|
|
319
324
|
rescue IOError, Errno::EPIPE => error
|
|
320
325
|
@restart_attempts = (@restart_attempts || 0) + 1
|
data/lib/ci/queue/version.rb
CHANGED