Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Toman committed Sep 6, 2012
1 parent d81b013 commit bf81297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/es.rb
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def extract(pid, es_name)
data = GoodData.post "/gdc/projects/#{pid}/eventStore/stores/#{es_name}/readTasks", to_extract_fragment(pid, {:pretty => false}).to_json
link = data["asyncTask"]["link"]["poll"]
response = GoodData.get(link, :process => false)
while response.code != 204 then
while response.code != 204 do
GoodData.connection.retryable(:tries => 3, :on => RestClient::InternalServerError) do
sleep 5
response = GoodData.get(link, :process => false)
Expand Down

0 comments on commit bf81297

Please sign in to comment.