connectors_service 8.5.0.1 → 8.5.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/connectors.yml +2 -2
- data/lib/core/scheduler.rb +7 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: baf4335fca4fc1c30f38e3e87f4f5d6faa1d1a09c0908d6eb52871082efc4a51
|
4
|
+
data.tar.gz: a02943c80ac14c28008b40003767014c5c7c50a644a8bd716249e247e6e68781
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9cdc1724e1124862f8c0b3168a5f1f8c48bd32141f1a8a52d8b08c0283718e017209255d6c3a2c86dea5dd55f7ac6135622f81fe12f0005d2247723b7c1043b
|
7
|
+
data.tar.gz: 3bd69888ec474d8df559320f9b839ffefb3d59348ecd3330ee28248d550916a7fc09ba89de41888f0a7017936120b108c7f58dbb0b2ad01b449527ffd6fcdff2
|
data/config/connectors.yml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# general metadata
|
2
|
-
version: 8.5.0.
|
2
|
+
version: 8.5.0.2
|
3
3
|
repository: https://github.com/elastic/connectors-ruby.git
|
4
|
-
revision:
|
4
|
+
revision: a676a90c37cf4d1f91b8f10ee289481fd4f16d79
|
5
5
|
elasticsearch:
|
6
6
|
cloud_id: CHANGEME
|
7
7
|
hosts: http://localhost:9200
|
data/lib/core/scheduler.rb
CHANGED
@@ -45,7 +45,7 @@ module Core
|
|
45
45
|
Utility::ExceptionTracking.log_exception(e, 'Sync failed due to unexpected error.')
|
46
46
|
ensure
|
47
47
|
if @poll_interval > 0 && !@is_shutting_down
|
48
|
-
Utility::Logger.
|
48
|
+
Utility::Logger.debug("Sleeping for #{@poll_interval} seconds in #{self.class}.")
|
49
49
|
sleep(@poll_interval)
|
50
50
|
end
|
51
51
|
end
|
@@ -62,7 +62,7 @@ module Core
|
|
62
62
|
return false unless connector_registered?(connector_settings.service_type)
|
63
63
|
|
64
64
|
unless connector_settings.valid_index_name?
|
65
|
-
Utility::Logger.
|
65
|
+
Utility::Logger.warn("The index name of #{connector_settings.formatted} is invalid.")
|
66
66
|
return false
|
67
67
|
end
|
68
68
|
|
@@ -81,7 +81,7 @@ module Core
|
|
81
81
|
# Don't sync if sync is explicitly disabled
|
82
82
|
scheduling_settings = connector_settings.scheduling_settings
|
83
83
|
unless scheduling_settings.present? && scheduling_settings[:enabled] == true
|
84
|
-
Utility::Logger.
|
84
|
+
Utility::Logger.debug("#{connector_settings.formatted.capitalize} scheduling is disabled.")
|
85
85
|
return false
|
86
86
|
end
|
87
87
|
|
@@ -141,9 +141,11 @@ module Core
|
|
141
141
|
end
|
142
142
|
|
143
143
|
def configuration_triggered?(connector_settings)
|
144
|
-
|
144
|
+
if connector_settings.needs_service_type? || connector_registered?(connector_settings.service_type)
|
145
|
+
return connector_settings.connector_status == Connectors::ConnectorStatus::CREATED
|
146
|
+
end
|
145
147
|
|
146
|
-
|
148
|
+
false
|
147
149
|
end
|
148
150
|
|
149
151
|
def connector_registered?(service_type)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: connectors_service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.5.0.
|
4
|
+
version: 8.5.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|