Vacuum DB routine
Some checks failed
E2E Tests / e2e (push) Has been cancelled
Tests and checks on push / run-checks-and-tests (push) Has been cancelled
Updates translation progress / update-translation-progress-issue (push) Has been cancelled

This commit is contained in:
Kalle
2026-08-21 22:29:20 +03:00
parent fefdcdfa65
commit e9beb092ad
5 changed files with 77 additions and 3 deletions

9
scripts/vacuum-db.ts Normal file
View File

@@ -0,0 +1,9 @@
import { ServerConfig } from "~/config.server";
import { VacuumDatabaseRoutine } from "~/routines/vacuumDatabase";
import { logger } from "~/utils/logger";
logger.info(
`Vacuuming ${ServerConfig.dbPath}, writes are blocked until it finishes`,
);
await VacuumDatabaseRoutine.run();