Method: Xmonitor::Dashboard#wait_for_finish_query_execution
- Defined in:
- lib/xmonitor/dashboard.rb
#wait_for_finish_query_execution(query_execution_id) ⇒ Object
60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/xmonitor/dashboard.rb', line 60 def wait_for_finish_query_execution(query_execution_id) loop do response = @athena.get_query_execution(query_execution_id: query_execution_id) @logger.info(response: response) state = response.query_execution.status.state return response unless ['QUEUED', 'RUNNING'].include?(state) sleep 1 end end |