You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/09/25 16:30:43 UTC

[GitHub] [airflow] nuclearpinguin commented on a change in pull request #6178: [AIRFLOW-5546] Fix DataprocClusterCreateOperator

nuclearpinguin commented on a change in pull request #6178: [AIRFLOW-5546] Fix DataprocClusterCreateOperator
URL: https://github.com/apache/airflow/pull/6178#discussion_r328222406
 
 

 ##########
 File path: airflow/gcp/operators/dataproc.py
 ##########
 @@ -485,7 +485,20 @@ def _usable_existing_cluster_present(self, service):
 
             if existing_status == 'RUNNING':
                 self.log.info('Cluster exists and is already running. Using it.')
-                return True
+                return existing_cluster
 
 Review comment:
   I agree. I did this because it's a restricted method used only in execute where I handle this output. And that's better than failing operator (system tested).
   
   Probably I will close this issue soon because I am refactoring Dataproc hook / operators.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services