vincbeck commented on code in PR #51883:
URL: https://github.com/apache/airflow/pull/51883#discussion_r2155100342


##########
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:
   Correct. Please also update the `return_key` as well, since it no longer 
return the `job_id` but `job_id` and `application_id`. Maybe `job_infos`?



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