()
| 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() |
no test coverage detected