throttle JSDOM parsing
This commit is contained in:
parent
6240180fda
commit
651f942e92
1 changed files with 2 additions and 0 deletions
|
|
@ -254,6 +254,8 @@ export default class DocsService {
|
|||
if (processedPages === maxKnownPages) {
|
||||
maxKnownPages *= 2;
|
||||
}
|
||||
|
||||
await new Promise((resolve) => setTimeout(resolve, 50));
|
||||
}
|
||||
|
||||
void Telemetry.capture("docs_pages_crawled", {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue