delayed_job_es 0.1.7 → 0.1.8
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 +9 -2
- data/lib/delayed_job_es/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 403ae7ca8d4164ddb47c07d4a31dda199d808cd3
|
4
|
+
data.tar.gz: 70383244aa6bd9a525dd03f10b430a6f6b115858
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52c6515ffd9e3fdc18fcbe2c2c80078fe2bd1732d2497c910da740a2ebaa71ef1c90c05f59adb3361f9cca0960796d4e76d10ea21cb89a8c236037075d95a109
|
7
|
+
data.tar.gz: 2199f84217ab16b0ab094605169e55c427f5e0e3664a7464d0e0017a4fbd825c70553114c9c526a91d3c61bda71e9e00c8dbf92775cbf381ee053be428f78f12
|
data/lib/delayed/backend/es.rb
CHANGED
@@ -35,8 +35,15 @@ module Delayed
|
|
35
35
|
cattr_accessor :client
|
36
36
|
|
37
37
|
def self.get_client
|
38
|
-
|
39
|
-
|
38
|
+
#puts "the environment is------------>"
|
39
|
+
#puts Rails.env.to_s
|
40
|
+
#where can we define the settings.
|
41
|
+
if Elasticsearch::Persistence.client
|
42
|
+
Elasticsearch::Persistence.client
|
43
|
+
else
|
44
|
+
client ||= Elasticsearch::Client.new
|
45
|
+
client
|
46
|
+
end
|
40
47
|
end
|
41
48
|
|
42
49
|
def self.mappings
|