Skip to content

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.

Merge branch 'develop' into feature/aspool-functions

Ondra Urbanc786c12c55ff
diff --cc src/autoscaling/autoscaled_pool.js
index ee69b7ee6,1e5e6955c..875f6dda9
--- a/src/autoscaling/autoscaled_pool.js
+++ b/src/autoscaling/autoscaled_pool.js
@@@ -375,8 -320,8 +375,8 @@@ class AutoscaledPool
// - system is overloaded now and we are at or above minConcurrency
const currentStatus = this.systemStatus.getCurrentStatus();
const { isSystemIdle } = currentStatus;
- if (!isSystemIdle && this.currentConcurrency >= this.minConcurrency) {
- log.debug('AutoscaledPool: Task will not run, system is overloaded.', currentStatus);
+ if (!isSystemIdle && this._currentConcurrency >= this._minConcurrency) {
- log.debug('AutoscaledPool: Task will not be run. System is overloaded.', currentStatus);
++ log.perf('AutoscaledPool: Task will not be run. System is overloaded.', currentStatus);
return done();
}
// - a task is ready.