Attempt to clean up the database cluster directory

This will help to avoid issues where the database cluster directory is left in an inconsistent state.
This commit is contained in:
Henry Mercer 2024-06-11 20:36:53 +01:00
parent 81b81437fd
commit 1354fe5355
13 changed files with 288 additions and 8 deletions

View file

@ -26,6 +26,7 @@ import { EnvVar } from "./environment";
import { Feature, Features } from "./feature-flags";
import {
checkInstallPython311,
cleanupDatabaseClusterDirectory,
initCodeQL,
initConfig,
isSipEnabled,
@ -321,6 +322,8 @@ async function run() {
}
try {
cleanupDatabaseClusterDirectory(config, logger);
// Forward Go flags
const goFlags = process.env["GOFLAGS"];
if (goFlags) {