MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / load

Method load

js/botasaurus-server-js/src/task-executor.ts:108–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106 private abortCheckIntervalId: ReturnType<typeof setInterval> | null = null
107
108 public load() {
109 if (Server.isScraperBasedRateLimit) {
110 this.currentCapacity = {}
111 } else {
112 this.currentCapacity = { browser: 0, request: 0, task: 0 }
113 }
114
115 Server.validateRateLimit()
116 }
117
118 public async start(): Promise<void> {
119 await this.fixInProgressTasks()

Callers 4

mainFunction · 0.45
mainFunction · 0.45
runFunction · 0.45
mainFunction · 0.45

Calls 1

validateRateLimitMethod · 0.80

Tested by

no test coverage detected