fix: retry failed projection resume batch
This commit is contained in:
@@ -899,7 +899,7 @@ export function startAgentRunProjectionResume({ options = {}, traceStore = defau
|
||||
void runAgentRunProjectionResumePass({ options, traceStore, logger, batchSize, minAgeMs, offset, reason })
|
||||
.then((result) => {
|
||||
failed = result?.failed > 0;
|
||||
nextOffset = result?.scannedSessions >= batchSize ? offset + batchSize : 0;
|
||||
nextOffset = failed ? offset : (result?.scannedSessions >= batchSize ? offset + batchSize : 0);
|
||||
})
|
||||
.catch((error) => {
|
||||
failed = true;
|
||||
|
||||
Reference in New Issue
Block a user