Change order of integrity check and add vacuum

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

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

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

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

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

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

Loading…
Cancel
Save