Adaverse commented on code in PR #32323:
URL: https://github.com/apache/airflow/pull/32323#discussion_r1251529709


##########
airflow/providers/microsoft/azure/hooks/data_factory.py:
##########
@@ -828,7 +834,14 @@ def wait_for_pipeline_run_status(
             # Wait to check the status of the pipeline run based on the 
``check_interval`` configured.
             time.sleep(check_interval)
 
-            pipeline_run_status = 
self.get_pipeline_run_status(**pipeline_run_info)
+            try:
+                pipeline_run_status = 
self.get_pipeline_run_status(**pipeline_run_info)
+                executed_after_token_refresh = True
+            except ServiceRequestError:
+                if executed_after_token_refresh:
+                    self.refresh_conn()
+                    continue
+                raise

Review Comment:
   Do we need `raise` with message or will it raise `ServiceRequestError` 
itself?



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to