turbaszek commented on a change in pull request #8954:
URL: https://github.com/apache/airflow/pull/8954#discussion_r429307560



##########
File path: airflow/providers/google/cloud/operators/datafusion.py
##########
@@ -674,14 +676,23 @@ def execute(self, context: Dict):
             project_id=self.project_id,
         )
         api_url = instance["apiEndpoint"]
-        hook.start_pipeline(
+        faux_pipeline_id = hook.start_pipeline(
             pipeline_name=self.pipeline_name,
             instance_url=api_url,
             namespace=self.namespace,
             runtime_args=self.runtime_args
 
         )
         self.log.info("Pipeline started")
+        hook.wait_for_pipeline_state(
+            success_states=[PipelineStates.COMPLETED],

Review comment:
       I've added `success_states` as an optional argument. If not provided the 
operator will wait for operation to be `RUNNING`




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


Reply via email to