You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a temporary rate limit has been exceeded a retry here will prevent the pipeline from failling
Are you interested in contributing this feature?
I have patched this locally just checking for Forbidden response type; this should be improved to inspect error reason for 'rateLimitExceeded' or error message for 'Exceeded rate limits' or similar filter to only retry in rate limit exceeded scenario.
# plugins/bigquery/dbt/adapters/bigquery/connections.pydef_is_retryable(error):
"""Return true for errors that are unlikely to occur again if retried."""ifisinstance(error, RETRYABLE_ERRORS):
returnTrueelifisinstance(error, google.api_core.exceptions.Forbidden) andany(e['reason'] =='rateLimitExceeded'foreinerror.errors):
returnTruereturnFalse
The text was updated successfully, but these errors were encountered:
wow - thanks for the heads up @championj-foxtel! I did not know that BQ returns a 403 here.... that is quite a decision.
Your local patch looks really great! If you'd be interested in opening a PR for that change, I think we'd be really happy to merge it. Let us know if that's something you'd be interested in - happy to help out if so!
Describe the feature
On a response of 403 rateLimitExceeded from BigQuery the tasks should retry if there are tries remaining
Additional context
rateLimitExceeded error in BigQuery returns a 403 instead of 429 https://cloud.google.com/bigquery/docs/error-messages
See similar discussion for google-cloud-python for some context: googleapis/google-cloud-python#6434
Who will this benefit?
When a temporary rate limit has been exceeded a retry here will prevent the pipeline from failling
Are you interested in contributing this feature?
I have patched this locally just checking for Forbidden response type; this should be improved to inspect error reason for 'rateLimitExceeded' or error message for 'Exceeded rate limits' or similar filter to only retry in rate limit exceeded scenario.
The text was updated successfully, but these errors were encountered: