eladkal commented on code in PR #46672:
URL: https://github.com/apache/airflow/pull/46672#discussion_r1976620434


##########
providers/snowflake/src/airflow/providers/snowflake/operators/snowflake.py:
##########
@@ -455,16 +455,21 @@ def execute(self, context: Context) -> None:
                 method_name="execute_complete",
             )
         else:
-            statement_status = self.poll_on_queries()
-            if statement_status["error"]:
-                raise AirflowException(statement_status["error"])
+            while True:
+                statement_status = self.poll_on_queries()

Review Comment:
   This is endless call to the Snowflake API without any waits between call.
   This can result in throttling issues isn't it?
   
   similar but not exactly the same issue with Glue was handled with sleep 
https://github.com/apache/airflow/pull/43688



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