Skip to content

How to test and confirm botocore retry config for DynamoDB? #3934

Answered by pinarkaymaz6
pinarkaymaz6 asked this question in Q&A
Discussion options

You must be logged in to vote

Okay I finally figure out how to confirm max attempts. Logging the client meta like this prints the total_max_attempts which is max_attempts + 1:

logger.debug(f"DynamoDB retry config: {db.meta.client.meta._client_config.retries}")

It prints:

[DEBUG] 2023-11-15T14:08:28.375Z DynamoDB retry config: {'mode': 'standard', 'total_max_attempts': 8}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pinarkaymaz6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant