fix: harden doctor config cleanup
This commit is contained in:
1 parent
8e33bd8610
commit
d4df747f9f
3 files changed
+28
-11
No files matched your search
@@ -1795,7 +1795,9 @@ export class MemoryIndexManager {
|
||||
if (!this.batch.enabled) {
|
||||
return { disabled: true, count: this.batchFailureCount };
|
||||
}
|
||||
const increment = params.forceDisable ? BATCH_FAILURE_LIMIT : Math.max(1, params.attempts ?? 1);
|
||||
const increment = params.forceDisable
|
||||
? BATCH_FAILURE_LIMIT
|
||||
: Math.max(1, params.attempts ?? 1);
|
||||
this.batchFailureCount += increment;
|
||||
this.batchFailureLastError = params.message;
|
||||
this.batchFailureLastProvider = params.provider;
|
||||
|
||||
Reference in new issue
Block a user