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 +4 -4
- data/Changes.md +5 -0
- data/Pro-Changes.md +2 -1
- data/bin/sidekiqctl +2 -2
- data/lib/sidekiq/api.rb +9 -8
- data/lib/sidekiq/cli.rb +6 -2
- data/lib/sidekiq/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d42c2e9a872cd5b00e30147f9d72aa587dc2a33
|
4
|
+
data.tar.gz: 0d8a3223a321ae8aff8da8c468ca43a14bd0a851
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 042f1408d57e3327c9391543e2bbf0e4d6f02ba7d7f3db9f7beccb4d91ef54d165d14b210b0b0d2b3b6be69e6212e1f72fc51648d3a71fb17959dbfd78d08d29
|
7
|
+
data.tar.gz: e663acb2a1fbf05ef5ca4ccae9adc2d9704610f3e281be4072a1621538b2b0507f9bc37958bb397eb3af45af6df12d4b4db76dd7da605513adb10857f1f2863a
|
data/Changes.md
CHANGED
data/Pro-Changes.md
CHANGED
@@ -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
|
-
|
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
|
-----------
|
data/bin/sidekiqctl
CHANGED
@@ -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", :
|
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
|
data/lib/sidekiq/api.rb
CHANGED
@@ -231,8 +231,10 @@ module Sidekiq
|
|
231
231
|
|
232
232
|
def add_to_queue
|
233
233
|
Sidekiq.redis do |conn|
|
234
|
-
results = conn.
|
235
|
-
|
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.
|
247
|
-
|
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.
|
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
|
data/lib/sidekiq/cli.rb
CHANGED
@@ -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
|
-
|
50
|
-
|
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
|
|
data/lib/sidekiq/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|