dominikhei opened a new pull request, #51883:
URL: https://github.com/apache/airflow/pull/51883

   
   ---
   closes: #42401
   
   I have introduced a `cancel_job` method to the EMRServerlessHook, which 
wraps the 
[cancel_job_run](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/emr-serverless/client/cancel_job_run.html)
 method from boto3. 
   
   In cases of a non deferrable job run, if an Exception that 
waiter_max_attempts has been reached is thrown, `cancel_job` is executed. If 
deferrable is set to True, the cancellation logic is placed inside 
`execute_complete`, as this method evaluates the job state in this case. 
   


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