sidekiq 2.7.0 → 2.7.1

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.

data.tar.gz.sig CHANGED
Binary file
data/Changes.md CHANGED
@@ -1,3 +1,9 @@
1
+ 2.7.1
2
+ -----------
3
+
4
+ - Fix issue with hard shutdown [#680]
5
+
6
+
1
7
  2.7.0
2
8
  -----------
3
9
 
Binary file
@@ -13,9 +13,8 @@ module Sidekiq
13
13
  TIMEOUT = 1
14
14
 
15
15
  def initialize(mgr, options)
16
- klass = Sidekiq.options[:fetch] || BasicFetch
17
16
  @mgr = mgr
18
- @strategy = klass.new(options)
17
+ @strategy = Fetcher.strategy.new(options)
19
18
  end
20
19
 
21
20
  # Fetching is straightforward: the Manager makes a fetch
@@ -57,6 +56,10 @@ module Sidekiq
57
56
  def self.done?
58
57
  @done
59
58
  end
59
+
60
+ def self.strategy
61
+ Sidekiq.options[:fetch] || BasicFetch
62
+ end
60
63
  end
61
64
 
62
65
  class BasicFetch
@@ -118,7 +118,7 @@ module Sidekiq
118
118
  # contract says that jobs are run AT LEAST once. Process termination
119
119
  # is delayed until we're certain the jobs are back in Redis because
120
120
  # it is worse to lose a job than to run it twice.
121
- Sidekiq.options[:fetch].bulk_requeue(@in_progress.values)
121
+ Sidekiq::Fetcher.strategy.bulk_requeue(@in_progress.values)
122
122
 
123
123
  # Clearing workers in Redis
124
124
  # NOTE: we do this before terminating worker threads because the
@@ -1,3 +1,3 @@
1
1
  module Sidekiq
2
- VERSION = "2.7.0"
2
+ VERSION = "2.7.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
4
+ version: 2.7.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -36,7 +36,7 @@ cert_chain:
36
36
  TTNOenY4ek5CblVKakg1L0E1aWdDSUFMKzZ2VTcrc3UKc0xGK0pDRlBiQmd2
37
37
  UnFMNWhYMDNDS3V5T1VObVVWVDVBbkNEbmZJRFVWL2tKaFg3V2ZyNklxYVVI
38
38
  bVVjeS9qbgpleTZobHc9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
39
- date: 2013-02-03 00:00:00.000000000 Z
39
+ date: 2013-02-06 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: redis
metadata.gz.sig CHANGED
Binary file