Lee-W commented on code in PR #33405:
URL: https://github.com/apache/airflow/pull/33405#discussion_r1295349323
##########
airflow/providers/amazon/aws/sensors/batch.py:
##########
@@ -115,7 +115,15 @@ def execute_complete(self, context: Context, event:
dict[str, Any]) -> None:
Relies on trigger to throw an exception, otherwise it assumes
execution was successful.
"""
if event["status"] != "success":
- raise AirflowException(f"Error while running job: {event}")
+ message = f"Error while running job: {event}"
+ # TODO: remove this if-else block when min_airflow_version is set
to higher than the version that
+ # raise_failed_or_skiping_exception is introduced in
BaseSensorOperator
Review Comment:
I can send another PR after the version is decided
--
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]