Skip to content

Commit

Permalink
Adjust read_timeout to be approximately as long as the backend timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidS committed Oct 28, 2020
1 parent 929ab71 commit f9aab5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/provision_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit f9aab5a

Please sign in to comment.