lib/gooddata/models/execution.rb in gooddata-0.6.18 vs lib/gooddata/models/execution.rb in gooddata-0.6.19
- old
+ new
@@ -87,11 +87,11 @@
end
# Wait for execution result, status different than RUNNING or SCHEDULED
#
# @return [GoodData::Execution] Execution result
- def wait_for_result
- res = client.poll_on_response(uri) do |body|
+ def wait_for_result(options = {})
+ res = client.poll_on_response(uri, options) do |body|
body['execution'] && (body['execution']['status'] == 'RUNNING' || body['execution']['status'] == 'SCHEDULED')
end
@json = res
self
end