sidekiq 4.2.8 → 4.2.9

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: fe925959389b100c1bddc94d0d2851708ca1c31a
4
- data.tar.gz: 2759f348ba3fe6881a8d5921347e78cdaaba93b8
3
+ metadata.gz: 1bfbae2d6e06595febe27592cf45c3a5f188f7e9
4
+ data.tar.gz: cae512a4610cd6670d51559e71a3156a00d43eab
5
5
  SHA512:
6
- metadata.gz: 81df636c013d70dc7f86578d1b473ee9145068311a9a1b8952c3d4166763a68a765b36598a11076b70b21508c92f2bb3061aa64727262fd80e64892e1bfd3176
7
- data.tar.gz: adc95ecacca483bf1e60ffd2732f600d9e401063b8d30cd7f47659ac831abd9c7d563ead4da9c712ed3cfc49890ef92ebe3d0da6610839b84f685c37d224e1ad
6
+ metadata.gz: 42b2738772c88ba2d22dee47dc8e8bb5755d8d8f769a033be6e0e503f6e15ddc02092db6b745365db93448d110231721838c9bec8c0ced7537c451dfecc940d0
7
+ data.tar.gz: 8e6861e5b2cec345eeeb10fd2f031431dae82db2af3fa60e58a30c78d874f39a92a7638e0d291c5885a78eaa36dd50010dfb973225ee0dd6cd345059c17598e9
data/Changes.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Sidekiq Changes
2
2
 
3
+ 4.2.9
4
+ -----------
5
+
6
+ - Rollback [#3303] which broke Heroku Redis users [#3311]
7
+ - Add support for TSTP signal, for Sidekiq 5.0 forward compatibility. [#3302]
8
+
3
9
  4.2.8
4
10
  -----------
5
11
 
@@ -47,6 +53,7 @@ Sidekiq::Web.set :sessions, false
47
53
  - Fix Web UI sharding support broken in 4.2.2. [#3169]
48
54
  - Fix timestamps not updating during UI polling [#3193, shaneog]
49
55
  - Relax rack-protection version to >= 1.5.0
56
+ - Provide consistent interface to exception handlers, changing the structure of the context hash. [#3161]
50
57
 
51
58
  4.2.2
52
59
  -----------
@@ -52,7 +52,7 @@ module Sidekiq
52
52
 
53
53
  self_read, self_write = IO.pipe
54
54
 
55
- %w(INT TERM USR1 USR2 TTIN).each do |sig|
55
+ %w(INT TERM USR1 USR2 TTIN TSTP).each do |sig|
56
56
  begin
57
57
  trap sig do
58
58
  self_write.puts(sig)
@@ -135,6 +135,10 @@ module Sidekiq
135
135
  when 'USR1'
136
136
  Sidekiq.logger.info "Received USR1, no longer accepting new work"
137
137
  launcher.quiet
138
+ when 'TSTP'
139
+ # USR1 is not available on JVM, allow TSTP as an alternate signal
140
+ Sidekiq.logger.info "Received TSTP, no longer accepting new work"
141
+ launcher.quiet
138
142
  when 'USR2'
139
143
  if Sidekiq.options[:logfile]
140
144
  Sidekiq.logger.info "Received USR2, reopening log file"
@@ -68,7 +68,13 @@ module Sidekiq
68
68
  end
69
69
 
70
70
  opts[:driver] ||= 'ruby'
71
- opts[:reconnect_attempts] ||= 0
71
+
72
+ # Issue #3303, redis-rb will silently retry an operation.
73
+ # This can lead to duplicate jobs if Sidekiq::Client's LPUSH
74
+ # is performed twice but I believe this is much, much rarer
75
+ # than the reconnect silently fixing a problem; we keep it
76
+ # on by default.
77
+ opts[:reconnect_attempts] ||= 1
72
78
 
73
79
  opts
74
80
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Sidekiq
3
- VERSION = "4.2.8"
3
+ VERSION = "4.2.9"
4
4
  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: 4.2.8
4
+ version: 4.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Perham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-09 00:00:00.000000000 Z
11
+ date: 2017-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis