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: f520d675d7ac188ff4388dc0be7f69af2db22321
4
- data.tar.gz: 69cac6997fbc895958aaa2e790ee8f1bb989ad4b
3
+ metadata.gz: daf8955174d16cd3e763dbde108ed5d2d8e85556
4
+ data.tar.gz: 0f9543ed79d6355bd3218f3f7c8ca52c899e5624
5
5
  SHA512:
6
- metadata.gz: e03d4ce118de6eff69a26dc02ec7b2e5fd4507abd3ba5c62a47846e31e667b5ddb85af8b1674106ee6d8795c74a5268217f13351b6db7991ba3236cdf707bb95
7
- data.tar.gz: a87b47ae2f4b4f930098a0a4016483de7c410a297ac76bae862d1e83284036192d2dbcf7412ba26e40bd12388d5fac17d8653afbaccf26fc0554aa5c4fb565b7
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
- ModelPublisherJob.perform_async(klass, ids, options, operation)
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
 
@@ -1,3 +1,3 @@
1
1
  module MultipleManSidekiq
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -1,6 +1,7 @@
1
1
  require "multiple_man_sidekiq/version"
2
2
 
3
3
  module MultipleManSidekiq
4
+ require 'multiple_man_sidekiq/configuration'
4
5
  require 'multiple_man_sidekiq/async_model_publisher'
5
6
  require 'multiple_man_sidekiq/mixins/async_publisher'
6
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multiple_man_sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Brunner