mirror of
https://github.com/webrecorder/browsertrix-crawler.git
synced 2025-12-08 06:09:48 +00:00
page state type fixes: (#488)
- ensure pageid always inited for pagestate - remove generic any from PageState - use WorkerState instead of internal WorkerOpts
This commit is contained in:
parent
9f18a49c0a
commit
3b6c11d77b
3 changed files with 7 additions and 13 deletions
|
|
@ -33,7 +33,7 @@ import { Screenshots } from "./util/screenshots.js";
|
|||
import { parseArgs } from "./util/argParser.js";
|
||||
import { initRedis } from "./util/redis.js";
|
||||
import { logger, formatErr } from "./util/logger.js";
|
||||
import { WorkerOpts, WorkerState, runWorkers } from "./util/worker.js";
|
||||
import { WorkerState, runWorkers } from "./util/worker.js";
|
||||
import { sleep, timedRun, secondsElapsed } from "./util/timing.js";
|
||||
import { collectAllFileSources } from "./util/file_reader.js";
|
||||
|
||||
|
|
@ -869,7 +869,7 @@ self.__bx_behaviors.selectMainBehavior();
|
|||
await this.checkLimits();
|
||||
}
|
||||
|
||||
async teardownPage({ workerid }: WorkerOpts) {
|
||||
async teardownPage({ workerid }: WorkerState) {
|
||||
if (this.screencaster) {
|
||||
await this.screencaster.stopById(workerid);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue