From e1d48055d907a7335e281b43c560a8ca95447539 Mon Sep 17 00:00:00 2001 From: tvaron3 Date: Mon, 28 Jul 2025 17:49:12 -0700 Subject: [PATCH 1/3] update sample and retry documentation --- .../azure-cosmos/docs/ErrorCodesAndRetries.md | 28 +++++------ .../samples/session_token_management.py | 48 ++++++++----------- .../samples/session_token_management_async.py | 45 +++++++---------- 3 files changed, 51 insertions(+), 70 deletions(-) diff --git a/sdk/cosmos/azure-cosmos/docs/ErrorCodesAndRetries.md b/sdk/cosmos/azure-cosmos/docs/ErrorCodesAndRetries.md index a864635082a1..355d335a6ee3 100644 --- a/sdk/cosmos/azure-cosmos/docs/ErrorCodesAndRetries.md +++ b/sdk/cosmos/azure-cosmos/docs/ErrorCodesAndRetries.md @@ -2,17 +2,17 @@ The Cosmos DB Python SDK has several default policies that will deal with retrying certain errors and exceptions. More information on these can be found below. -| Status code | Cause of exception and retry behavior | -| :--- |:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| 400 | For all operations:
| -| 401 | For all operations:
| -| 403 |