frail-apricot•8mo ago
Max session count 1 doesn't work, session got called concurrently upon starting.


7 Replies
frail-apricotOP•8mo ago

frail-apricotOP•8mo ago
upon starting the crawler, a single session got called 2 times even with maxUsageCount = 1
frail-apricotOP•8mo ago
well even with max concurrency 1, the session get reused on the next request

frail-apricotOP•8mo ago
when i explicitly retire the session in preNavHook, the same session still gets called twice

frail-apricotOP•8mo ago
GitHub
SessionPool generates more sessions that needed and also does not r...
Which package is this bug report for? If unsure which one to select, leave blank None Issue description Create basic PlaywrightCrawler/PuppeteerCrawler/HttpCrawler (at least I've tried all thes...
hey, thanks for reporting. For now, to make it work, you can set
maxUsageCount
in the createSessionFunction
when creating the sessionfrail-apricotOP•8mo ago
i got it working by keeping track of usageCount inside the router handler, the state is stored separately on request.session.userData