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 ee299b0 commit cde851fCopy full SHA for cde851f
apps/webapp/app/v3/dynamicFlushScheduler.server.ts
@@ -242,8 +242,10 @@ export class DynamicFlushScheduler<T> {
242
243
// Don't await here - let them run concurrently
244
Promise.allSettled(flushPromises).then(() => {
245
+ const shouldContinueFlushing =
246
+ this.batchQueue.length > 0 && (this.consecutiveFlushFailures < 3 || this.isShuttingDown);
247
// After flush completes, check if we need to flush more
- if (this.batchQueue.length > 0 && !this.isShuttingDown && this.consecutiveFlushFailures < 3) {
248
+ if (shouldContinueFlushing) {
249
this.flushBatches();
250
}
251
});
0 commit comments