ci-queue 0.59.0 → 0.61.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 819bdcb75a47f0408507b8a4522ea1fded49ea8b007668bb0c7d05c87bb3eb14
4
- data.tar.gz: d2d8fc7dbb54393e2003914799b906a38f2e3051bddcc3abff903a3e13da2526
3
+ metadata.gz: b900f8a09cea2d1759ec122202ae7c00768a34f8d82710ae1a8f617548cfc8a4
4
+ data.tar.gz: 50b90a137f069fff19b9cbf0fdf61a51d30e9951d940f3dbf75b300fcbb1eb57
5
5
  SHA512:
6
- metadata.gz: 780ccd5c27acc1dbb32588dbbdb9aa75ad72404d6cfa512eb7dfdc241b275b5be690530f5d508674dd0809543bcf7521a5df93a19e4ef90bed81a4ad5d8f940c
7
- data.tar.gz: 16ac6975a2d47e65de1f0cdf53c21d341307de7412fa8da3ee35d73e9743dabf71f4fa36f0170d05ca315aee1476540c076ed39ab9ca48c1464a7bb74f3f59a2
6
+ metadata.gz: ac1e9c1843ca6ae92c9828bc9179c48d904651776b17293bdbd99a48251dfe1a125b4342f52d4984d274e82a51ec6c39e3870affdec0a98e03b94e4e49e7e8d7
7
+ data.tar.gz: 23adbd50a57d892192515ba8cf1bde941f1ee42b2aa49a2f1461ac57e265049bcc3f480d2bf03521ec49ab49a00fd771f8068675bd5469b293a667d2ca7675c9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ci-queue (0.59.0)
4
+ ci-queue (0.61.0)
5
5
  logger
6
6
 
7
7
  GEM
@@ -5,8 +5,6 @@ require 'set'
5
5
  module CI
6
6
  module Queue
7
7
  module Redis
8
- ReservationError = Class.new(StandardError)
9
-
10
8
  class << self
11
9
  attr_accessor :requeue_offset
12
10
  end
@@ -16,6 +16,7 @@ module CI
16
16
  module Redis
17
17
  Error = Class.new(StandardError)
18
18
  LostMaster = Class.new(Error)
19
+ ReservationError = Class.new(Error)
19
20
 
20
21
  class << self
21
22
 
@@ -60,6 +60,10 @@ module CI
60
60
 
61
61
  def report_worker_error(error); end
62
62
 
63
+ def queue_initialized?
64
+ true
65
+ end
66
+
63
67
  def created_at=(timestamp)
64
68
  @created_at ||= timestamp
65
69
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CI
4
4
  module Queue
5
- VERSION = '0.59.0'
5
+ VERSION = '0.61.0'
6
6
  DEV_SCRIPTS_ROOT = ::File.expand_path('../../../../../redis', __FILE__)
7
7
  RELEASE_SCRIPTS_ROOT = ::File.expand_path('../redis', __FILE__)
8
8
  end
@@ -37,7 +37,7 @@ module Minitest
37
37
  end
38
38
 
39
39
  build.worker_errors.to_a.sort.each do |worker_id, error|
40
- puts yellow("Worker #{worker_id } crashed")
40
+ puts red("Worker #{worker_id } crashed")
41
41
  puts error
42
42
  puts ""
43
43
  end
@@ -266,6 +266,13 @@ module Minitest
266
266
  reopen_previous_step
267
267
  puts red("The heartbeat process died. This worker is exiting early.")
268
268
  exit!(41)
269
+ rescue CI::Queue::Redis::Error
270
+ reopen_previous_step
271
+ puts red("#{error.class}: #{error.message}")
272
+ error.backtrace.each do |frame|
273
+ puts red(frame)
274
+ end
275
+ exit!(41)
269
276
  rescue => error
270
277
  reopen_previous_step
271
278
  queue.report_worker_error(error)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ci-queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.59.0
4
+ version: 0.61.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-03 00:00:00.000000000 Z
11
+ date: 2024-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logger