delayed_job_es 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/delayed/backend/es.rb +11 -1
- data/lib/delayed_job_es/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: f5523da7d2aafcb586959a491f68805596507895
|
4
|
+
data.tar.gz: 3e63a43b462e3b500c6bbb8bd26d9647cd2b1757
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b8be80b09994543f4f9047a65ba9b986eb955d956d57daedf3c7eb58888e1eedea25616135c6262b96fe9ea1e360d941c296d7d54477f552e98620d2ef946d6
|
7
|
+
data.tar.gz: ef40f372b4fd9322bbc424a88bb05c1c761c557cbd01f736b988706342f17a4cce5bf467c9d5ad2d6a13ae7448efef9e1f23fea8ee3bac2118cd8f4e643b1724
|
data/lib/delayed/backend/es.rb
CHANGED
@@ -89,10 +89,20 @@ module Delayed
|
|
89
89
|
response = get_client.indices.create :index => INDEX_NAME, :body => {
|
90
90
|
mappings: {DOCUMENT_TYPE => { :properties => mappings}}
|
91
91
|
}
|
92
|
+
puts "Created delayed job index with response."
|
93
|
+
puts response.to_s
|
92
94
|
end
|
93
95
|
|
94
96
|
def self.delete_index
|
95
|
-
|
97
|
+
if Elasticsearch::Persistence.client.indices.exists? index: INDEX_NAME
|
98
|
+
|
99
|
+
puts "delayed job index exists."
|
100
|
+
response = get_client.indices.delete :index => INDEX_NAME
|
101
|
+
puts "delete response:"
|
102
|
+
puts response.to_s
|
103
|
+
else
|
104
|
+
puts "delayed job index does not exist."
|
105
|
+
end
|
96
106
|
end
|
97
107
|
|
98
108
|
def self.create_indexes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delayed_job_es
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Great Manta
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|