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
chore: remove unused poolPromise property on AutoscaledPool (#2347)
Jan Buchar28aba0897453
diff --git a/packages/core/src/autoscaling/autoscaled_pool.ts b/packages/core/src/autoscaling/autoscaled_pool.tsindex b249fb0a0..77702e3e7 100644--- a/packages/core/src/autoscaling/autoscaled_pool.ts+++ b/packages/core/src/autoscaling/autoscaled_pool.ts@@ -203,7 +203,6 @@ export class AutoscaledPool {private reject: ((reason?: unknown) => void) | null = null;private snapshotter: Snapshotter;private systemStatus: SystemStatus;- private poolPromise!: Promise<unknown>;private autoscaleInterval!: BetterIntervalID;private maybeRunInterval!: BetterIntervalID;private queryingIsTaskReady!: boolean;@@ -357,7 +356,7 @@ export class AutoscaledPool {* all the tasks are finished or one of them fails.*/async run(): Promise<void> {- this.poolPromise = new Promise((resolve, reject) => {+ const poolPromise = new Promise((resolve, reject) => {this.resolve = resolve;this.reject = reject;});@@ -378,7 +377,7 @@ export class AutoscaledPool {}try {- await this.poolPromise;+ await poolPromise;} finally {// If resolve is null, the pool is already destroyed.if (this.resolve) await this._destroy();