mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Make job polling requests for Dyn retryable within exconn by passing the idempotent option.
This commit is contained in:
parent
866d49350e
commit
cc975ef975
1 changed files with 6 additions and 1 deletions
|
@ -123,7 +123,12 @@ module Fog
|
||||||
job_location = response.headers['Location']
|
job_location = response.headers['Location']
|
||||||
|
|
||||||
Fog.wait_for(time_to_wait) do
|
Fog.wait_for(time_to_wait) do
|
||||||
response = request(:expects => original_expects, :method => :get, :path => job_location)
|
response = request(
|
||||||
|
:expects => original_expects,
|
||||||
|
:idempotent => true,
|
||||||
|
:method => :get,
|
||||||
|
:path => job_location
|
||||||
|
)
|
||||||
response.body['status'] != 'incomplete'
|
response.body['status'] != 'incomplete'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue