mik-laj commented on a change in pull request #4064: AIRFLOW-3149 Support
dataproc cluster deletion on ERROR
URL: https://github.com/apache/airflow/pull/4064#discussion_r252560700
##########
File path: airflow/contrib/hooks/gcp_dataproc_hook.py
##########
@@ -241,6 +241,40 @@ def wait(self, operation):
submitted = _DataProcOperation(self.get_conn(), operation)
submitted.wait_for_done()
+ @staticmethod
+ def _execute_delete(service, project_id, region, cluster_name):
+ response = service.projects().regions().clusters().delete(
+ projectId=project_id,
+ region=region,
+ clusterName=cluster_name
+ ).execute()
Review comment:
```suggestion
).execute(num_retries=5)
```
Google API sometimes does not respond correctly. You should send a request
again.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services