From f9aab5ac4c5220a21ec6a52b59fb7dd3b811c966 Mon Sep 17 00:00:00 2001 From: David Schmitt Date: Wed, 28 Oct 2020 16:42:43 +0000 Subject: [PATCH] Adjust read_timeout to be approximately as long as the backend timeout --- tasks/provision_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/provision_service.rb b/tasks/provision_service.rb index d0d2242..3c43bc5 100755 --- a/tasks/provision_service.rb +++ b/tasks/provision_service.rb @@ -46,7 +46,7 @@ def invoke_cloud_request(params, uri, job_url, verb) req_options = { use_ssl: uri.scheme == 'https', - read_timeout: 500, + read_timeout: 60 * 5, # timeout reads after 5 minutes - that's longer than the backend service would keep the request open } response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http|