turbaszek commented on a change in pull request #9593: URL: https://github.com/apache/airflow/pull/9593#discussion_r454193518
########## File path: airflow/providers/google/cloud/hooks/dataproc.py ########## @@ -376,15 +376,25 @@ def diagnose_cluster( :type metadata: Sequence[Tuple[str, str]] """ client = self.get_cluster_client(location=region) - result = client.diagnose_cluster( + operation = client.diagnose_cluster( project_id=project_id, region=region, cluster_name=cluster_name, retry=retry, timeout=timeout, metadata=metadata, ) - return result + done = False + while not done: + time.sleep(3) + # The dataproc python client has some problems + # TypeError: Could not convert Any to Empty + try: + done = operation.done() + except TypeError: + pass Review comment: ETA this end of this week https://github.com/googleapis/python-dataproc/issues/51#issuecomment-657888007 ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org