Skip to content

Commit

Permalink
fix(RequestQueueV2): reset recently handled cache too if the queue is…
Browse files Browse the repository at this point in the history
… pending for too long (#2656)
  • Loading branch information
vladfrangu committed Sep 3, 2024
1 parent 3b1116e commit 51a69bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/storages/request_provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,8 @@ export abstract class RequestProvider implements IStorage {
});

this.queueHeadIds.clear();
// This cache may be the bane of our existence, but it's still required for v1...
this.recentlyHandledRequestsCache.clear();
}

if (this.queueHeadIds.length() > 0) {
Expand Down

0 comments on commit 51a69bc

Please sign in to comment.