regression fix: start redis if needed before attempting to init state! (#819)

bump to 1.6.0-beta.1
This commit is contained in:
Ilya Kreymer 2025-04-09 21:37:46 +02:00 committed by GitHub
parent c796996664
commit f2dac05577
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "browsertrix-crawler", "name": "browsertrix-crawler",
"version": "1.6.0-beta.0", "version": "1.6.0-beta.1",
"main": "browsertrix-crawler", "main": "browsertrix-crawler",
"type": "module", "type": "module",
"repository": "https://github.com/webrecorder/browsertrix-crawler", "repository": "https://github.com/webrecorder/browsertrix-crawler",

View file

@ -476,8 +476,6 @@ export class Crawler {
} }
async bootstrap() { async bootstrap() {
await this.initCrawlState();
if (await isDiskFull(this.params.cwd)) { if (await isDiskFull(this.params.cwd)) {
logger.fatal( logger.fatal(
"Out of disk space, exiting", "Out of disk space, exiting",
@ -498,6 +496,8 @@ export class Crawler {
subprocesses.push(this.launchRedis()); subprocesses.push(this.launchRedis());
} }
await this.initCrawlState();
await fsp.mkdir(this.logDir, { recursive: true }); await fsp.mkdir(this.logDir, { recursive: true });
if (!this.params.dryRun) { if (!this.params.dryRun) {