sidekiq 2.17.5 → 2.17.6

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of sidekiq might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f45fd360f6855464c593e4fb45908eb33dcb0efe
4
- data.tar.gz: b635fac989f62f29bd4f7f740343851560bb6829
3
+ metadata.gz: 0d42c2e9a872cd5b00e30147f9d72aa587dc2a33
4
+ data.tar.gz: 0d8a3223a321ae8aff8da8c468ca43a14bd0a851
5
5
  SHA512:
6
- metadata.gz: b56a2d5b412234622fc5e531c5402d5b9c8251373250eaadaa8c37a3918145d1afd740ee4b9311ce9bcb0fa08fd172a397a5ba3ab97c3271541a11a0524c2898
7
- data.tar.gz: d1e0f55a98d11c4d15a4e3bec401ac571e482b1973869c66f7f40a433895aabb8a920085d5341c9ecc0f873d28f76925ea72dffa2884286ad26b61865e80e5a4
6
+ metadata.gz: 042f1408d57e3327c9391543e2bbf0e4d6f02ba7d7f3db9f7beccb4d91ef54d165d14b210b0b0d2b3b6be69e6212e1f72fc51648d3a71fb17959dbfd78d08d29
7
+ data.tar.gz: e663acb2a1fbf05ef5ca4ccae9adc2d9704610f3e281be4072a1621538b2b0507f9bc37958bb397eb3af45af6df12d4b4db76dd7da605513adb10857f1f2863a
data/Changes.md CHANGED
@@ -1,3 +1,8 @@
1
+ 2.17.6
2
+ -----------
3
+
4
+ - Fix capistrano integration due to missing pidfile. [#1490]
5
+
1
6
  2.17.5
2
7
  -----------
3
8
 
@@ -3,10 +3,11 @@ Sidekiq Pro Changelog
3
3
 
4
4
  Please see [http://sidekiq.org/pro](http://sidekiq.org/pro) for more details and how to buy.
5
5
 
6
- HEAD
6
+ 1.4.3
7
7
  -----------
8
8
 
9
9
  - Reverse sorting of Batches in Web UI [#1098]
10
+ - Refactoring for Sidekiq 3.0, Pro now requires Sidekiq 2.17.5
10
11
 
11
12
  1.4.2
12
13
  -----------
@@ -12,7 +12,7 @@ class Sidekiqctl
12
12
  @timeout = timeout
13
13
 
14
14
  done('No pidfile given', :error) if !pidfile
15
- done("Pidfile #{pidfile} does not exist", :error) if !File.exist?(pidfile)
15
+ done("Pidfile #{pidfile} does not exist", :warn) if !File.exist?(pidfile)
16
16
  done('Invalid pidfile content', :error) if pid == 0
17
17
 
18
18
  fetch_process
@@ -40,7 +40,7 @@ class Sidekiqctl
40
40
  end
41
41
 
42
42
  def pid
43
- File.read(pidfile).to_i
43
+ @pid ||= File.read(pidfile).to_i
44
44
  end
45
45
 
46
46
  def quiet
@@ -231,8 +231,10 @@ module Sidekiq
231
231
 
232
232
  def add_to_queue
233
233
  Sidekiq.redis do |conn|
234
- results = conn.zrangebyscore('schedule', score, score)
235
- conn.zremrangebyscore('schedule', score, score)
234
+ results = conn.multi do
235
+ conn.zrangebyscore('schedule', score, score)
236
+ conn.zremrangebyscore('schedule', score, score)
237
+ end.first
236
238
  results.map do |message|
237
239
  msg = Sidekiq.load_json(message)
238
240
  Sidekiq::Client.push(msg)
@@ -243,8 +245,10 @@ module Sidekiq
243
245
  def retry
244
246
  raise "Retry not available on jobs not in the Retry queue." unless item["failed_at"]
245
247
  Sidekiq.redis do |conn|
246
- results = conn.zrangebyscore('retry', score, score)
247
- conn.zremrangebyscore('retry', score, score)
248
+ results = conn.multi do
249
+ conn.zrangebyscore('retry', score, score)
250
+ conn.zremrangebyscore('retry', score, score)
251
+ end.first
248
252
  results.map do |message|
249
253
  msg = Sidekiq.load_json(message)
250
254
  msg['retry_count'] = msg['retry_count'] - 1
@@ -420,10 +424,7 @@ module Sidekiq
420
424
  Sidekiq.redis do |conn|
421
425
  workers = conn.smembers("workers")
422
426
  workers.each do |w|
423
- msg, time = conn.multi do
424
- conn.get("worker:#{w}")
425
- conn.get("worker:#{w}:started")
426
- end
427
+ msg, time = conn.mget("worker:#{w}", "worker:#{w}:started")
427
428
  next unless msg
428
429
  block.call(w, Sidekiq.load_json(msg), time)
429
430
  end
@@ -46,8 +46,12 @@ module Sidekiq
46
46
  self_read, self_write = IO.pipe
47
47
 
48
48
  %w(INT TERM USR1 USR2 TTIN).each do |sig|
49
- trap sig do
50
- self_write.puts(sig)
49
+ begin
50
+ trap sig do
51
+ self_write.puts(sig)
52
+ end
53
+ rescue ArgumentError
54
+ puts "Signal #{sig} not supported"
51
55
  end
52
56
  end
53
57
 
@@ -1,3 +1,3 @@
1
1
  module Sidekiq
2
- VERSION = "2.17.5"
2
+ VERSION = "2.17.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.17.5
4
+ version: 2.17.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Perham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-15 00:00:00.000000000 Z
11
+ date: 2014-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis