Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
Fix autoscaled pool terminating before all tasks finish
Ondra Urban5edd1fe9fd77
diff --git a/src/autoscaling/autoscaled_pool.js b/src/autoscaling/autoscaled_pool.jsindex 9e6d0e5cd..7594b56de 100644--- a/src/autoscaling/autoscaled_pool.js+++ b/src/autoscaling/autoscaled_pool.js@@ -370,7 +370,7 @@ export default class AutoscaledPool {*/async _maybeFinish() {if (this.queryingIsFinished) return;- if (this.runningCount > 0) return;+ if (this.currentConcurrency > 0) return;this.queryingIsFinished = true;try {