bug: Browser-based crawlers double increment session.usageCount
#2851
Labels
t-tooling
Issues with this label are in the ownership of the tooling team.
As mentioned in comments of #1836 , instances of
BrowserCrawler
track thesession.usageCount
incorrectly. This is caused (partially?) by a double increment ofsession.usageCount
- first inBrowserCrawler
:crawlee/packages/browser-crawler/src/internals/browser-crawler.ts
Line 596 in f3927e6
and then in
BasicCrawler
:crawlee/packages/basic-crawler/src/internals/basic-crawler.ts
Line 1337 in d1a094a
Reproduction
prints out only even numbers:
The text was updated successfully, but these errors were encountered: