Skip to content

Commit

Permalink
fix: concurrency scaling too quickly (#70)
Browse files Browse the repository at this point in the history
* fix: concurrency scaling too quickly

* docs: update CHANGELOG.md
  • Loading branch information
Patai5 authored Jul 30, 2024
1 parent f0bb799 commit 157b5ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/src/crawler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export const createCrawler = async (config: Config) => {
headless: true,
},
},
/** The default values scale up and down too quickly for larger runs, these values are half that */
autoscaledPoolOptions: { scaleDownStepRatio: 0.025, scaleUpStepRatio: 0.025 },
retryOnBlocked: true,
requestHandlerTimeoutSecs: 3 * 60,
proxyConfiguration,
Expand Down
3 changes: 3 additions & 0 deletions shared/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ This changelog tracks updates to both GTP Scraper and Extended GPT Scraper actor
- Set this model as the default one for the the *Pay Per Result* scraper with a set token limit.
- With this, the maximum token limit for the *Pay Per Result* scraper was increased by 150%.

*Fixes*
- Fixed concurrency scaling issues that were causing the Actor to fail due to scaling too quickly.

# 2024-05-20
*Features*
- Added support for GPT-4o model. (Extended GPT Scraper only)
Expand Down

0 comments on commit 157b5ca

Please sign in to comment.