Skip to content

Commit 080877b

Browse files
committed
docs(db): describe how the unavailable-read predicate overlaps the infrastructure one
1 parent aeb8ccf commit 080877b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/sim/lib/db/read-retry.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export function isTransientDatabaseReadError(error: unknown): boolean {
4747
* Whether a failed read is temporary for the caller: a retryable driver error, an exhausted read
4848
* deadline, or a statement or transaction timeout. Surfaces present these as retry-later responses;
4949
* the timeouts stay out of {@link isTransientDatabaseReadError} because re-running a cancelled
50-
* scan in-process only repeats its cost. Narrower than `isRetryableInfrastructureError`, which
51-
* also treats a user-requested cancel as retryable.
50+
* scan in-process only repeats its cost. Not interchangeable with `isRetryableInfrastructureError`:
51+
* that one treats every 57014 cancel as retryable, including a user-requested one.
5252
*/
5353
export function isDatabaseReadUnavailable(error: unknown): boolean {
5454
if (error instanceof DatabaseReadDeadlineError || isTransientDatabaseReadError(error)) return true

0 commit comments

Comments
 (0)