Skip to content

Commit afeff49

Browse files
authored
Add retries on RPC token bucket limit has been exceeded (#395)
## Changes Another case when the platform is not sending a proper HTTP 429 response. This time for the SCIM user list: <img width="925" alt="image" src="https://github.com/databricks/databricks-sdk-py/assets/259697/c6159844-949b-4746-8750-7e7125056493"> ## Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> - [ ] `make test` run locally - [ ] `make fmt` applied - [ ] relevant integration tests applied --------- Signed-off-by: Serge Smertin <[email protected]>
1 parent 26e41fe commit afeff49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

databricks/sdk/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,8 @@ def _is_retryable(err: BaseException) -> Optional[str]:
10971097
"com.databricks.backend.manager.util.UnknownWorkerEnvironmentException",
10981098
"does not have any associated worker environments", "There is no worker environment with id",
10991099
"Unknown worker environment", "ClusterNotReadyException", "Unexpected error",
1100-
"Please try again later or try a faster operation."
1100+
"Please try again later or try a faster operation.",
1101+
"RPC token bucket limit has been exceeded",
11011102
]
11021103
for substring in transient_error_string_matches:
11031104
if substring not in message:

0 commit comments

Comments
 (0)