pankajkoti commented on code in PR #30865:
URL: https://github.com/apache/airflow/pull/30865#discussion_r1183688234


##########
airflow/providers/amazon/aws/waiters/batch.json:
##########
@@ -0,0 +1,19 @@
+{
+  "version": 2,
+  "waiters": {
+    "JobComplete": {
+      "delay": 300,
+      "operation": "DescribeJobs",
+      "maxAttempts": 100,
+      "description": "Wait until job is SUCCEEDED",
+      "acceptors": [
+        {
+          "argument": "jobs[].status",
+          "expected": "SUCCEEDED",
+          "matcher": "pathAll",
+          "state": "success"
+        }

Review Comment:
   Similar to 
https://github.com/apache/airflow/pull/30945#discussion_r1183679249, can we add 
another acceptor for the terminal `FAILED` state?
   
   Ref: https://docs.aws.amazon.com/batch/latest/userguide/job_states.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]

Reply via email to