Skip to content

Instantly share code, notes, and snippets.

@cfchou
Created January 10, 2018 08:58
Show Gist options
  • Save cfchou/8efa1fe537e6ed9db15771e8fcd526a0 to your computer and use it in GitHub Desktop.
Save cfchou/8efa1fe537e6ed9db15771e8fcd526a0 to your computer and use it in GitHub Desktop.
athena waiters-2.json
{
"version": 2,
"waiters": {
"QuerySucceeded": {
"delay": 15,
"operation": "GetQueryExecution",
"maxAttempts": 40,
"acceptors": [
{
"expected": "SUCCEEDED",
"matcher": "path",
"state": "success",
"argument": "QueryExecution.Status.State"
},
{
"expected": "FAILED",
"matcher": "path",
"state": "failure",
"argument": "QueryExecution.Status.State"
},
{
"expected": "CANCELED",
"matcher": "path",
"state": "failure",
"argument": "QueryExecution.Status.State"
}
]
},
"QueriesFinished": {
"delay": 15,
"operation": "BatchGetQueryExecution",
"maxAttempts": 40,
"acceptors": [
{
"expected": true,
"matcher": "path",
"state": "success",
"argument": "length(QueryExecutions[?Status.State == `RUNNING`]) == `0`"
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment