lib/gooddata/rest/client.rb in gooddata-0.6.46 vs lib/gooddata/rest/client.rb in gooddata-0.6.47
- old
+ new
@@ -327,10 +327,10 @@
limit_breached = time_limit && (Time.now - poll_start > time_limit)
if limit_breached
fail ExecutionLimitExceeded, "The time limit #{time_limit} secs for polling on #{link} is over"
end
sleep sleep_interval
- GoodData::Rest::Client.retryable(:tries => 3, :refresh_token => proc { connection.refresh_token }) do
+ GoodData::Rest::Client.retryable(:tries => ConnectionHelper::GD_MAX_RETRY, :refresh_token => proc { connection.refresh_token }) do
response = get(link, process: process)
end
end
response
end