hectormirete commented on code in PR #22980:
URL: https://github.com/apache/airflow/pull/22980#discussion_r849530550
##########
airflow/providers/amazon/aws/operators/emr.py:
##########
@@ -404,3 +404,80 @@ def execute(self, context: 'Context') -> None:
raise AirflowException(f'JobFlow termination failed: {response}')
else:
self.log.info('JobFlow with id %s terminated', self.job_flow_id)
+
+
+class EmrAutoTerminatePolicyOperator(BaseOperator):
+ """
+ An operator to put auto terminate policy on a given cluster/jobflow
+ Note: auto terminate policy is supported with Amazon EMR versions 5.30.0
and 6.1.0 and later.
Review Comment:
Good point, totally agree.
I did it so specific because I think this policy is the unique one that can
not be set when creating the EMR cluster with boto3.
--
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]