There was an error while loading. Please reload this page.
1 parent 85cc2a6 commit 27020f8Copy full SHA for 27020f8
1 file changed
airflow/providers/google/cloud/hooks/datafusion.py
@@ -112,13 +112,15 @@ def wait_for_pipeline_state(
112
start_time = monotonic()
113
current_state = None
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
-
+ try:
+ current_state = self._get_workflow_state(
+ pipeline_name=pipeline_name,
+ pipeline_id=pipeline_id,
+ instance_url=instance_url,
+ namespace=namespace,
+ )
122
+ except AirflowException:
123
+ pass # Because the pipeline may not be visible in system yet
124
if current_state in success_states:
125
return
126
if current_state in failure_states:
0 commit comments