Skip to content

Commit 695e40c

Browse files
algolia-botFluf22millotp
committed
feat(clients): endpoint level timeout part 2 [skip-bc] (generated)
algolia/api-clients-automation#4318 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Thomas Raffray <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent faaa38f commit 695e40c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/algolia/api/ingestion_client.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2158,6 +2158,7 @@ def push_task_with_http_info(task_id, push_task_payload, watch = nil, request_op
21582158
header_params = {}
21592159
header_params = header_params.merge(request_options[:header_params]) unless request_options[:header_params].nil?
21602160
request_options[:timeout] ||= 180000
2161+
request_options[:connect_timeout] ||= 180000
21612162

21622163
post_body = request_options[:debug_body] || @api_client.object_to_http_body(push_task_payload)
21632164

@@ -2643,6 +2644,7 @@ def trigger_docker_source_discover_with_http_info(source_id, request_options = {
26432644
header_params = {}
26442645
header_params = header_params.merge(request_options[:header_params]) unless request_options[:header_params].nil?
26452646
request_options[:timeout] ||= 180000
2647+
request_options[:connect_timeout] ||= 180000
26462648

26472649
post_body = request_options[:debug_body]
26482650

@@ -3122,6 +3124,7 @@ def validate_source_with_http_info(source_create = nil, request_options = {})
31223124
header_params = {}
31233125
header_params = header_params.merge(request_options[:header_params]) unless request_options[:header_params].nil?
31243126
request_options[:timeout] ||= 180000
3127+
request_options[:connect_timeout] ||= 180000
31253128

31263129
post_body = request_options[:debug_body] || @api_client.object_to_http_body(source_create)
31273130

@@ -3176,6 +3179,7 @@ def validate_source_before_update_with_http_info(source_id, source_update, reque
31763179
header_params = {}
31773180
header_params = header_params.merge(request_options[:header_params]) unless request_options[:header_params].nil?
31783181
request_options[:timeout] ||= 180000
3182+
request_options[:connect_timeout] ||= 180000
31793183

31803184
post_body = request_options[:debug_body] || @api_client.object_to_http_body(source_update)
31813185

0 commit comments

Comments
 (0)