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 +0 -0
- data/Changes.md +6 -0
- data/examples/web-ui.png +0 -0
- data/lib/sidekiq/fetch.rb +5 -2
- data/lib/sidekiq/manager.rb +1 -1
- data/lib/sidekiq/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/Changes.md
CHANGED
data/examples/web-ui.png
CHANGED
Binary file
|
data/lib/sidekiq/fetch.rb
CHANGED
@@ -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 =
|
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
|
data/lib/sidekiq/manager.rb
CHANGED
@@ -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.
|
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
|
data/lib/sidekiq/version.rb
CHANGED
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.
|
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-
|
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
|