We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15d1806 commit 4b2a41aCopy full SHA for 4b2a41a
apps/coordinator/src/index.ts
@@ -113,19 +113,6 @@ async function getParsedFileSize(filePath: string) {
113
};
114
}
115
116
-// At 10 retries, the minimum total elapsed time is 5h22m, and the maximum is double that
117
-function exponentialBackoffMs(retryCount: number) {
118
- const MS_MULTIPLIER = 1000;
119
- const MAX = 2 * 60 * 60 * 1000;
120
-
121
- const rawDelay = 3 ** retryCount * MS_MULTIPLIER;
122
123
- // Equal jitter is less performant, but more predictable than other strategies
124
- const boundedWithJitter = Math.min((rawDelay / 2) * (1 + Math.random()), MAX);
125
126
- return boundedWithJitter;
127
-}
128
129
class Checkpointer {
130
#initialized = false;
131
#canCheckpoint = false;
0 commit comments