pankajastro commented on code in PR #30279:
URL: https://github.com/apache/airflow/pull/30279#discussion_r1226895666
##########
airflow/providers/amazon/aws/sensors/batch.py:
##########
@@ -75,6 +87,32 @@ def poke(self, context: Context) -> bool:
raise AirflowException(f"Batch sensor failed. Unknown AWS Batch job
status: {state}")
+ def execute(self, context: Context) -> None:
+ if not self.deferrable:
+ super().execute(context=context)
+ else:
+ self.defer(
+ timeout=timedelta(seconds=self.timeout),
Review Comment:
similar feedback are here
https://github.com/apache/airflow/pull/30945#discussion_r1218436958
--
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]