Business intelligence made simple
Rescue and retry on Athena QUEUED query state (#256)
Preet Sethib52e04f22159
diff --git a/lib/blazer/adapters/athena_adapter.rb b/lib/blazer/adapters/athena_adapter.rbindex fe86981a..07ce8c14 100644--- a/lib/blazer/adapters/athena_adapter.rb+++ b/lib/blazer/adapters/athena_adapter.rb@@ -32,7 +32,7 @@ module Blazerquery_execution_id: query_execution_id)rescue Aws::Athena::Errors::InvalidRequestException => e- if e.message != "Query has not yet finished. Current state: RUNNING"+ unless e.message =~ /Query has not yet finished. Current state: (RUNNING|QUEUED)/raise eendif Time.now < stop_at