Skip to content

Commit 6ecdd59

Browse files
committed
docs(idempotency): describe dedup as bounded by the claim lease and result TTL
1 parent 6133179 commit 6ecdd59

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/sim/lib/core/idempotency/service.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,8 +572,9 @@ export class IdempotencyService {
572572
}
573573

574574
/**
575-
* Runs `operation` at most once per key. A caller that finds another holder's live claim
576-
* polls until that holder finishes and returns (or rethrows) its outcome, so use this when
575+
* Runs `operation` once per key while its claim lease and stored result last. A caller that
576+
* finds another holder's live claim polls until that holder finishes and returns (or rethrows)
577+
* its outcome, so use this when
577578
* the caller's own response depends on the result (e.g. Stripe must not get a 2xx before
578579
* the first attempt settles).
579580
*/

0 commit comments

Comments
 (0)