sunspot-parallel-reindex 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sunspot/parallel/reindex/tasks.rb +5 -2
- data/lib/sunspot/parallel/reindex/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: 9ca11a19b67c9e17331e396b71be02fbe79f2854
|
4
|
+
data.tar.gz: d68a5101623f92647a0cbb010ac7d18db550058e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38c6e9cf1ce6c1e9d429055801739e65744f4fbe8f6dab5a1ef2546fa7f80d5d54ad27d92e47198b1ddc8149628ccc01dbd99ce533056cdf0424c18c81b07b2b
|
7
|
+
data.tar.gz: b5ccddfdb13ebcf2703e96c69793f137a2068163127dd9e2436c47a79f8cab1c2b0db4e6a709ad0558160865db7575e732ff08be8d6085b8f2f022af32b4fce6
|
@@ -1,7 +1,8 @@
|
|
1
1
|
namespace :sunspot do
|
2
|
+
ARGNAMES = [:batch_size, :models, :exec_processor_size]
|
2
3
|
namespace :reindex do
|
3
4
|
desc "Reindex models in parallel"
|
4
|
-
task :parallel,
|
5
|
+
task :parallel, ARGNAMES => :environment do |t, args|
|
5
6
|
with_session(Sunspot::SessionProxy::Retry5xxSessionProxy.new(Sunspot.session)) do
|
6
7
|
reindex_options = { :batch_commit => false,
|
7
8
|
:exec_processor_size => Parallel.processor_count,
|
@@ -65,6 +66,8 @@ namespace :sunspot do
|
|
65
66
|
end
|
66
67
|
end
|
67
68
|
namespace :parallel do
|
68
|
-
task :reindex
|
69
|
+
task :reindex, ARGNAMES do |_, args|
|
70
|
+
Rake::Task['sunspot:reindex:parallel'].invoke(*args)
|
71
|
+
end
|
69
72
|
end
|
70
73
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sunspot-parallel-reindex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Tucker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|