File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -143,6 +143,9 @@ class Configuration:
143143 :type retry_backoff_factor: float
144144 :param max_retries: The maximum number of times a single request can be retried.
145145 :type max_retries: int
146+ :param retry_policy: Custom retry policy instance (e.g., urllib3.util.Retry). If provided, this overrides
147+ the default retry behavior and the enable_retry, retry_backoff_factor, and max_retries settings.
148+ :type retry_policy: urllib3.util.Retry
146149 :param delegated_auth_provider: The delegated authentication provider (e.g., 'aws' for AWS).
147150 :type delegated_auth_provider: str
148151 :param delegated_auth_org_uuid: The organization UUID for delegated authentication.
@@ -174,6 +177,7 @@ def __init__(
174177 enable_retry = False ,
175178 retry_backoff_factor = 2 ,
176179 max_retries = 3 ,
180+ retry_policy = None ,
177181 delegated_auth_provider = None ,
178182 delegated_auth_org_uuid = None ,
179183 ):
@@ -238,6 +242,7 @@ def __init__(
238242 self .enable_retry = enable_retry
239243 self .retry_backoff_factor = retry_backoff_factor
240244 self .max_retries = max_retries
245+ self .retry_policy = retry_policy
241246
242247 # Keep track of unstable operations
243248 self .unstable_operations = _UnstableOperations (
You can’t perform that action at this time.
0 commit comments