dominikhei commented on code in PR #51883:
URL: https://github.com/apache/airflow/pull/51883#discussion_r2155086717
##########
providers/amazon/src/airflow/providers/amazon/aws/operators/emr.py:
##########
@@ -1280,6 +1288,9 @@ def execute_complete(self, context: Context, event:
dict[str, Any] | None = None
if validated_event["status"] == "success":
self.log.info("Serverless job completed")
return validated_event["job_id"]
+ self.log.info("Cancelling EMR Serverless job %s", self.job_id)
+ self.hook.conn.cancel_job_run(applicationId=self.application_id,
jobRunId=self.job_id)
Review Comment:
Thanks for the feedback. From what I have seen in the `AwsBaseWaiterTrigger`
I can simply use a dictionary with both values as a `return_value`in the
trigger?
--
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]