-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[CT-352] Catch all Requests Exception on Deps Install and Retry #4849
Comments
github-actions
bot
changed the title
Catch all Requests Exception on Deps Install and Retry
[CT-352] Catch all Requests Exception on Deps Install and Retry
Mar 11, 2022
@emmyoop I'm just noting this down here in case it gets lost in our process. We saw another surge in If we are catching and retrying on |
4 tasks
Saw this on 1.0.5-rc1:
|
jtcohen6
added
deps
dbt's package manager
and removed
packages
Functionality for interacting with installed packages
labels
Mar 30, 2022
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We are not retrying for all exceptions from Requests and it's causing more unexpected/seemingly unexplained failures. We should try to mitigate these failures by retrying (up to 5 times). The logic to retry already exists. We just need to make sure we catch the right/entirety of exceptions.
Catch all exceptions from Requests by catching just
requests.exceptions.RequestException
since all exceptions that Requests explicitly raises inherit fromrequests.exceptions.RequestException
. Note that theReadError
should remain.Also fire a new event to track what exception we're retrying so that we can track where the failures are in the future.
dbt-core/core/dbt/utils.py
Lines 609 to 620 in ecfd77f
Related Issues: #4601, #4178
The text was updated successfully, but these errors were encountered: