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


##########
airflow/providers/amazon/aws/operators/batch.py:
##########
@@ -190,11 +197,31 @@ def execute(self, context: Context):
         """
         self.submit_job(context)
 
+        if self.deferrable:
+            self.defer(
+                timeout=self.execution_timeout,
+                trigger=BatchOperatorTrigger(
+                    job_id=self.job_id,
+                    max_retries=self.max_retries or 10,

Review Comment:
   nit: I would make this consistent with how `poll_interval` is done (i.e. 
assign a default value in `init`. But that's just my opinion.



-- 
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