Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle ClientConnectorError to allow for retries #1338

Merged
merged 5 commits into from
Oct 31, 2023
Merged

Handle ClientConnectorError to allow for retries #1338

merged 5 commits into from
Oct 31, 2023

Conversation

RNHTTR
Copy link
Contributor

@RNHTTR RNHTTR commented Oct 9, 2023

Currently, if the API call results in a ClientConnectorError, it won't be properly handled, and it won't be eligible for retries. This adds the ClientConnectorError to the exceptions that trigger the databricks retry block.

@phanikumv
Copy link
Collaborator

@Lee-W can you try to fix the mypy failure so that we can get this merged to main

@Lee-W
Copy link
Contributor

Lee-W commented Oct 18, 2023

ok

@Lee-W Lee-W self-assigned this Oct 18, 2023
@Lee-W Lee-W added this to the 1.18.1 milestone Oct 18, 2023
@Lee-W
Copy link
Contributor

Lee-W commented Oct 18, 2023

Fixed the databricks issue. other failures are blocked by #1341

@codecov
Copy link

codecov bot commented Oct 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d7f867f) 98.56% compared to head (aa2f239) 98.57%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1338   +/-   ##
=======================================
  Coverage   98.56%   98.57%           
=======================================
  Files          91       91           
  Lines        5454     5458    +4     
=======================================
+ Hits         5376     5380    +4     
  Misses         78       78           
Files Coverage Δ
...stronomer/providers/databricks/hooks/databricks.py 96.00% <100.00%> (+0.22%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

RNHTTR and others added 5 commits October 30, 2023 17:24
Currently, if the API call results in a `ClientConnectorError`, it won't be properly handled, and it won't be eligible for retries. This adds the `ClientConnectorError` to the exceptions that trigger the databricks retry block.
@Lee-W Lee-W merged commit 46d923b into main Oct 31, 2023
11 checks passed
@Lee-W Lee-W deleted the RNHTTR-patch-1 branch October 31, 2023 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants