From 97dc894712bd8890899f3d4dd7596cadb3c4fcb5 Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Wed, 18 Dec 2024 10:18:41 +0000 Subject: [PATCH] fix(specs): endpoint level timeout for ingestion (generated) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/algolia/api-clients-automation/pull/4251 Co-authored-by: algolia-bot Co-authored-by: Clément Vannicatte --- lib/algolia/api/ingestion_client.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/algolia/api/ingestion_client.rb b/lib/algolia/api/ingestion_client.rb index 92e4f977..443a784c 100644 --- a/lib/algolia/api/ingestion_client.rb +++ b/lib/algolia/api/ingestion_client.rb @@ -2151,6 +2151,7 @@ def push_task_with_http_info(task_id, push_task_payload, watch = nil, request_op query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil? header_params = {} header_params = header_params.merge(request_options[:header_params]) unless request_options[:header_params].nil? + request_options[:timeout] ||= 180000 post_body = request_options[:debug_body] || @api_client.object_to_http_body(push_task_payload) @@ -2635,6 +2636,7 @@ def trigger_docker_source_discover_with_http_info(source_id, request_options = { query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil? header_params = {} header_params = header_params.merge(request_options[:header_params]) unless request_options[:header_params].nil? + request_options[:timeout] ||= 180000 post_body = request_options[:debug_body] @@ -3113,6 +3115,7 @@ def validate_source_with_http_info(source_create = nil, request_options = {}) query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil? header_params = {} header_params = header_params.merge(request_options[:header_params]) unless request_options[:header_params].nil? + request_options[:timeout] ||= 180000 post_body = request_options[:debug_body] || @api_client.object_to_http_body(source_create) @@ -3166,6 +3169,7 @@ def validate_source_before_update_with_http_info(source_id, source_update, reque query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil? header_params = {} header_params = header_params.merge(request_options[:header_params]) unless request_options[:header_params].nil? + request_options[:timeout] ||= 180000 post_body = request_options[:debug_body] || @api_client.object_to_http_body(source_update)