Skip to content

Conversation

@vdonato
Copy link
Collaborator

@vdonato vdonato commented Apr 19, 2023

📚 Context

I initially implemented the retry logic for the .query() method of both the SQL and Snowpark
connections to always retry regardless of the exception type, which isn't great because tons of
exceptions are due to non-transient errors that won't go away just by trying again. This PR restricts
the exception types that we retry on for both connections.

@vdonato vdonato added the security-assessment-completed Security assessment has been completed for PR label Apr 19, 2023
@vdonato vdonato requested a review from lukasmasuch April 19, 2023 00:25
@vdonato vdonato force-pushed the vdonato/more-specific-retries branch from c1b48d9 to ce59499 Compare April 19, 2023 00:45
Copy link
Collaborator

@lukasmasuch lukasmasuch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@vdonato vdonato force-pushed the feature/st.experimental_connection branch from 2f2aede to 81c8c17 Compare April 19, 2023 19:58
@vdonato vdonato force-pushed the vdonato/more-specific-retries branch from ce59499 to 9b9acce Compare April 19, 2023 19:59
@vdonato vdonato merged commit 76bd93d into feature/st.experimental_connection Apr 19, 2023
@vdonato vdonato deleted the vdonato/more-specific-retries branch April 19, 2023 20:49
vdonato added a commit that referenced this pull request Apr 20, 2023
#6511)

* Don't always retry for Snowpark connection

* Don't always retry for SQL connection
vdonato added a commit that referenced this pull request Apr 21, 2023
#6511)

* Don't always retry for Snowpark connection

* Don't always retry for SQL connection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

security-assessment-completed Security assessment has been completed for PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants