ci-queue
Advanced tools
+1
-1
| PATH | ||
| remote: . | ||
| specs: | ||
| ci-queue (0.91.0) | ||
| ci-queue (0.92.0) | ||
| logger | ||
@@ -6,0 +6,0 @@ |
@@ -269,2 +269,7 @@ # frozen_string_literal: true | ||
| # Cached command marker. Passing this frozen String instead of the | ||
| # :tick! Symbol avoids allocating a 'tick!' String (from Symbol#to_s) | ||
| # on every heartbeat, which fires once per running test per worker. | ||
| TICK_COMMAND = 'tick!'.freeze | ||
| def initialize(redis_url, zset_key, owners_key, leases_key) | ||
@@ -318,3 +323,3 @@ @redis_url = redis_url | ||
| def tick!(id, lease) | ||
| send_message(:tick!, id: id, lease: lease.to_s) | ||
| send_message(TICK_COMMAND, id: id, lease: lease.to_s) | ||
| @restart_attempts = 0 | ||
@@ -321,0 +326,0 @@ rescue IOError, Errno::EPIPE => error |
@@ -5,3 +5,3 @@ # frozen_string_literal: true | ||
| module Queue | ||
| VERSION = '0.91.0' | ||
| VERSION = '0.92.0' | ||
| DEV_SCRIPTS_ROOT = ::File.expand_path('../../../../../redis', __FILE__) | ||
@@ -8,0 +8,0 @@ RELEASE_SCRIPTS_ROOT = ::File.expand_path('../redis', __FILE__) |