Moved some cleanup tasks within another task to ensure everything is processed at the same time.

This commit is contained in:
Joseph Milazzo 2023-12-05 06:53:33 -06:00
parent 723fde6850
commit d2c3bd7f1c
2 changed files with 2 additions and 12 deletions

View file

@ -92,6 +92,8 @@ public class CleanupService : ICleanupService
await CleanupLogs();
await SendProgress(0.9F, "Cleaning progress events that exceed 100%");
await EnsureChapterProgressIsCapped();
await SendProgress(0.95F, "Cleaning abandoned database rows");
await CleanupDbEntries();
await SendProgress(1F, "Cleanup finished");
_logger.LogInformation("Cleanup finished");
}