jay_api 29.2.0 → 29.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/jay_api/elasticsearch/client_factory.rb +8 -4
- data/lib/jay_api/version.rb +1 -1
- 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: 4ac3a59adff18d4cdc931309dc9467f3e528cc667b6796dcf7385e53c9d7022e
|
|
4
|
+
data.tar.gz: 39b30584e5685d1147640675b9026f7fe6e5493cc28b78c314b17247af7a2c3d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 40f8ec6e0622d1e8b577f20b8dd8b1bb9027b36ec3a262f2948702534b3cb2a69fa606db72d7eee920e111747138fdc1562b17325a2821e662f732d90cecb456
|
|
7
|
+
data.tar.gz: cf1b914bd5e2115b43671e0f7d53ab50228c6e8151ce16cca5339e80f26975dfda72c0fce4558192187611eb1c5979f38e0290bdb9741585f364edb0c3250e5a
|
data/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,12 @@ Please mark backwards incompatible changes with an exclamation mark at the start
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [29.3.0] - 2025-12-11
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
- The `timeout` parameter to `Elasticsearch::ClientFactory#create`. The parameter
|
|
15
|
+
allows the user to specify the timeout in seconds for Elasticsearch requests.
|
|
16
|
+
|
|
11
17
|
## [29.2.0] - 2025-12-09
|
|
12
18
|
|
|
13
19
|
### Added
|
|
@@ -62,13 +62,17 @@ module JayAPI
|
|
|
62
62
|
# each connection will be:
|
|
63
63
|
# * wait_interval with :constant wait strategy
|
|
64
64
|
# * wait_interval**i with :geometric wait strategy (where i is the i'th re-try)
|
|
65
|
+
# @param [Integer] timeout The number of seconds to wait for Elasticsearch's
|
|
66
|
+
# response. For big queries that fetch large amounts of data the default
|
|
67
|
+
# timeout may be too low.
|
|
65
68
|
# @return [JayAPI::Elasticsearch::Client] The Elasticsearch client.
|
|
66
|
-
def create(max_attempts: MAX_ATTEMPTS, wait_strategy: :geometric, wait_interval: WAIT_INTERVAL)
|
|
69
|
+
def create(max_attempts: MAX_ATTEMPTS, wait_strategy: :geometric, wait_interval: WAIT_INTERVAL, timeout: nil)
|
|
67
70
|
JayAPI::Elasticsearch::Client.new(
|
|
68
|
-
::Elasticsearch::Client.new(
|
|
71
|
+
::Elasticsearch::Client.new({
|
|
69
72
|
hosts: [host],
|
|
70
|
-
log: false
|
|
71
|
-
|
|
73
|
+
log: false,
|
|
74
|
+
request_timeout: timeout
|
|
75
|
+
}.compact),
|
|
72
76
|
logger,
|
|
73
77
|
max_attempts: max_attempts,
|
|
74
78
|
wait_strategy: WAIT_STRATEGIES[wait_strategy].new(wait_interval: wait_interval, logger: logger)
|
data/lib/jay_api/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jay_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 29.
|
|
4
|
+
version: 29.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Accenture-Industry X
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2025-12-
|
|
12
|
+
date: 2025-12-11 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|