Change order of integrity check and add vacuum

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/7/head
trivernis 2 years ago
parent 3c005c3a7e
commit c64881da0d
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -1182,7 +1182,7 @@ checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f"
[[package]]
name = "mediarepo-api"
version = "0.27.0"
version = "0.28.0"
dependencies = [
"bromine",
"chrono",

@ -1499,7 +1499,7 @@ checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f"
[[package]]
name = "mediarepo-api"
version = "0.27.0"
version = "0.28.0"
dependencies = [
"async-trait",
"bromine",

@ -1,3 +1,4 @@
export type JobType = "MigrateContentDescriptors"
| "CalculateSizes"
| "CheckIntegrity";
| "CheckIntegrity"
| "Vacuum";

@ -14,4 +14,5 @@
::ng-deep .app-error {
background-color: $warn;
color: $text;
}

@ -111,13 +111,15 @@ export class RepositoriesTabComponent implements OnInit, AfterViewInit {
}
private async runRepositoryStartupTasks(dialogContext: BusyDialogContext): Promise<void> {
dialogContext.message.next("Checking integrity...");
await this.jobService.runJob("CheckIntegrity");
dialogContext.message.next("Running a vacuum on the database...");
await this.jobService.runJob("Vacuum");
dialogContext.message.next(
"Migrating content descriptors to new format...");
await this.jobService.runJob("MigrateContentDescriptors");
dialogContext.message.next("Calculating repository sizes...");
await this.jobService.runJob("CalculateSizes");
dialogContext.message.next("Checking integrity...");
await this.jobService.runJob("CheckIntegrity");
dialogContext.message.next("Finished repository startup");
}

Loading…
Cancel
Save