mirror of
https://github.com/webrecorder/browsertrix-crawler.git
synced 2025-10-19 14:33:17 +00:00
regression fix: start redis if needed before attempting to init state! (#819)
bump to 1.6.0-beta.1
This commit is contained in:
parent
c796996664
commit
f2dac05577
2 changed files with 3 additions and 3 deletions
|
@ -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",
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue