sidekiq-reliable-fetch 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sidekiq/reliable_fetcher.rb +3 -3
- data/sidekiq-reliable-fetch.gemspec +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: a6c94563f370074743ff5f389fd3ec9ce6ce314a
|
4
|
+
data.tar.gz: 43d29834c4159951e274789a96bcd71b553929d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a05dad7ed7ff3715686e649a78d9068c7e5545ce8df7a51379b995c72b69ad32d03ec2b1a9595623a8e4a6595a8135f7327af204bcaf8aad35242682d428a80
|
7
|
+
data.tar.gz: 8f4a1603db5105657cfec7e54172be70d2a3af7000ec1f8645cb6c94c105ee83305ad0c7d2cb95ae7f723f5ee98c0d105d1f83c0a6ab0e53d87473fb1761dced
|
@@ -70,7 +70,7 @@ module Sidekiq
|
|
70
70
|
Sidekiq.redis do |conn|
|
71
71
|
conn.pipelined do
|
72
72
|
inprogress.each do |unit_of_work|
|
73
|
-
conn.
|
73
|
+
conn.lpush("#{unit_of_work.queue}", unit_of_work.message)
|
74
74
|
conn.lrem("#{unit_of_work.queue}:#{WORKING_QUEUE}", 1, unit_of_work.message)
|
75
75
|
end
|
76
76
|
end
|
@@ -97,7 +97,7 @@ module Sidekiq
|
|
97
97
|
def requeue
|
98
98
|
Sidekiq.redis do |conn|
|
99
99
|
conn.pipelined do
|
100
|
-
conn.
|
100
|
+
conn.lpush(queue, message)
|
101
101
|
conn.lrem("#{queue}:#{WORKING_QUEUE}", 1, message)
|
102
102
|
end
|
103
103
|
end
|
@@ -131,7 +131,7 @@ module Sidekiq
|
|
131
131
|
|
132
132
|
Sidekiq.logger.info "Requeued a dead job from #{queue}:#{WORKING_QUEUE}"
|
133
133
|
|
134
|
-
conn.
|
134
|
+
conn.lpush("#{queue}", job)
|
135
135
|
conn.lrem("#{queue}:#{WORKING_QUEUE}", 1, job)
|
136
136
|
end
|
137
137
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-reliable-fetch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TEA
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|