Taragolis commented on code in PR #29761:
URL: https://github.com/apache/airflow/pull/29761#discussion_r1119252995
##########
airflow/providers/amazon/aws/waiters/ecs.json:
##########
@@ -0,0 +1,81 @@
+{
+ "version": 2,
+ "waiters": {
+ "cluster_active": {
+ "operation": "DescribeClusters",
+ "delay": 15,
+ "maxAttempts": 60,
+ "acceptors": [
+ {
+ "expected": "ACTIVE",
+ "matcher": "pathAny",
+ "state": "success",
+ "argument": "clusters[].status"
+ },
+ {
+ "expected": "FAILED",
+ "matcher": "pathAny",
+ "state": "failure",
+ "argument": "clusters[].status"
+ },
+ {
+ "expected": "INACTIVE",
+ "matcher": "pathAny",
+ "state": "failure",
+ "argument": "clusters[].status"
+ },
+ {
+ "expected": "MISSING",
+ "matcher": "pathAny",
+ "state": "failure",
+ "argument": "failures[].reason"
Review Comment:
Hehe, I've looked into builtin `botocore` waiters for ECS:
https://github.com/boto/botocore/blob/develop/botocore/data/ecs/2014-11-13/waiters-2.json
And after that I checked which state available for different API calls
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/api_failures_messages.html
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]