Commit 9a72aa06 authored by Samir Noir's avatar Samir Noir 🧀
Browse files

Align timeout to OAR's API with api-proxy's timeout (180)

OAR can take time to schedule jobs, raising the timeout is necessary to
avoid errors.
parent d91440a7
Pipeline #281793 waiting for manual action with stages
in 26 minutes and 59 seconds
......@@ -203,7 +203,7 @@ class JobsController < ApplicationController
headers = { 'Accept' => api_media_type(:json),
'X-Remote-Ident' => @credentials[:cn],
'X-Api-User-Cn' => @credentials[:cn] }
http = http_request(:delete, uri, tls_options, 60, headers)
http = http_request(:delete, uri, tls_options, 180, headers)
continue_if!(http, is: [200, 202, 204, 404])
......@@ -252,7 +252,7 @@ class JobsController < ApplicationController
'Content-Type' => api_media_type(:json),
'Accept' => api_media_type(:json) }
http = http_request(:post, uri, tls_options, 60, headers, job_to_send.to_json)
http = http_request(:post, uri, tls_options, 180, headers, job_to_send.to_json)
continue_if!(http, is: [201, 202])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment