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(
112
112
start_time = monotonic ()
113
113
current_state = None
114
114
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
122
124
if current_state in success_states :
123
125
return
124
126
if current_state in failure_states :
You canβt perform that action at this time.
0 commit comments