File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
airflow/providers/google/cloud/hooks Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -112,13 +112,15 @@ def wait_for_pipeline_state(
112112 start_time = monotonic ()
113113 current_state = None
114114 while monotonic () - start_time < timeout :
115- current_state = self ._get_workflow_state (
116- pipeline_name = pipeline_name ,
117- pipeline_id = pipeline_id ,
118- instance_url = instance_url ,
119- namespace = namespace ,
120- )
121-
115+ try :
116+ current_state = self ._get_workflow_state (
117+ pipeline_name = pipeline_name ,
118+ pipeline_id = pipeline_id ,
119+ instance_url = instance_url ,
120+ namespace = namespace ,
121+ )
122+ except AirflowException :
123+ pass # Because the pipeline may not be visible in system yet
122124 if current_state in success_states :
123125 return
124126 if current_state in failure_states :
You can’t perform that action at this time.
0 commit comments