multiple_man_sidekiq 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: daf8955174d16cd3e763dbde108ed5d2d8e85556
|
4
|
+
data.tar.gz: 0f9543ed79d6355bd3218f3f7c8ca52c899e5624
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8b317028bbca116e09c9366c555e1a266c3fcf2e34af98bdff7de8cc78cb1be5baa1d857cf20c22c63b1cbc6ca7d3a9ab8b45628df575e90b1774c0c270ffbe
|
7
|
+
data.tar.gz: 16f284274cba54d7a63544652e7eb402d03ac25ef05aed37d3bf4f20d8145c81a03810cbbfe868b95a1b10543e9977c8fa6a8a3a89526c8160ba257ce489eedd
|
@@ -16,7 +16,13 @@ module MultipleMan
|
|
16
16
|
|
17
17
|
# Split jobs into parts so sidekiq doesn't need to deal with enormous seed jobs.
|
18
18
|
ids.each_slice(1000) do |ids|
|
19
|
-
|
19
|
+
queue = MultipleMan.configuration.sidekiq_queue[operation.to_sym] || 'default'
|
20
|
+
|
21
|
+
Sidekiq::Client.push({
|
22
|
+
'class' => ModelPublisherJob,
|
23
|
+
'queue' => queue,
|
24
|
+
'args' => [ klass, ids, options, operation ]
|
25
|
+
})
|
20
26
|
end
|
21
27
|
end
|
22
28
|
|
data/lib/multiple_man_sidekiq.rb
CHANGED