Skip to content

send an idempotency key on check-and-reserve and retry again - #125

Merged
bpapillon merged 1 commit into
mainfrom
bpapillon/sch-7499-check-and-reserve-has-no-idempotency-key-so-sdk-server-mode
Sep 17, 2026
Merged

bpapillon merged 1 commit into
mainfrom
bpapillon/sch-7499-check-and-reserve-has-no-idempotency-key-so-sdk-server-mode

Conversation

@bpapillon

Copy link
Copy Markdown
Collaborator

Server mode sent check-and-reserve with retries off, because a 502 after the API committed the hold would have made a retry a second hold. The API now dedupes on an idempotency key and answers a retry with the hold the first attempt took, so each check mints one key, sends it on the request, and drops the max_retries: 0 override, in both the sync and async clients. A transient 5xx now retries under the same key instead of surfacing as a failed check.

@bpapillon
bpapillon requested a review from a team as a code owner September 17, 2026 15:12
@bpapillon
bpapillon merged commit 26e1aad into main Sep 17, 2026
6 checks passed
@bpapillon
bpapillon deleted the bpapillon/sch-7499-check-and-reserve-has-no-idempotency-key-so-sdk-server-mode branch September 17, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants