Added cleanup and database optimisation (#168)

This commit is contained in:
Michael Green
2023-10-18 17:52:46 +11:00
committed by GitHub
parent 7ae6eb82f0
commit ac97652683
4 changed files with 102 additions and 2 deletions

View File

@@ -164,6 +164,11 @@ namespace gaseous_server
gaseous_tools.DatabaseMigration.UpgradeScriptBackgroundTasks();
break;
case QueueItemType.Maintainer:
Logging.Log(Logging.LogType.Debug, "Timered Event", "Starting Maintenance");
Classes.Maintenance.RunMaintenance();
break;
}
}
catch (Exception ex)
@@ -243,7 +248,12 @@ namespace gaseous_server
/// <summary>
/// Performs and post database upgrade scripts that can be processed as a background task
/// </summary>
BackgroundDatabaseUpgrade
BackgroundDatabaseUpgrade,
/// <summary>
/// Performs a clean up of old files, and optimises the database
/// </summary>
Maintainer
}
public enum QueueItemState