configurable cleanup

This commit is contained in:
mertalev 2025-10-09 16:38:21 -04:00
parent 883eb15ecb
commit ae2abb3cfe
No known key found for this signature in database
GPG key ID: DF6ABC77AAD98C95
14 changed files with 182 additions and 4 deletions

View file

@ -16824,6 +16824,9 @@
"missingThumbnails": {
"type": "boolean"
},
"removeStaleUploads": {
"$ref": "#/components/schemas/SystemConfigRemovePartialUploadsDto"
},
"startTime": {
"type": "string"
},
@ -16836,6 +16839,7 @@
"databaseCleanup",
"generateMemories",
"missingThumbnails",
"removeStaleUploads",
"startTime",
"syncQuotaUsage"
],
@ -16951,6 +16955,22 @@
],
"type": "object"
},
"SystemConfigRemovePartialUploadsDto": {
"properties": {
"enabled": {
"type": "boolean"
},
"hoursAgo": {
"minimum": 1,
"type": "integer"
}
},
"required": [
"enabled",
"hoursAgo"
],
"type": "object"
},
"SystemConfigReverseGeocodingDto": {
"properties": {
"enabled": {

View file

@ -1425,11 +1425,16 @@ export type SystemConfigMetadataDto = {
export type SystemConfigNewVersionCheckDto = {
enabled: boolean;
};
export type SystemConfigRemovePartialUploadsDto = {
enabled: boolean;
hoursAgo: number;
};
export type SystemConfigNightlyTasksDto = {
clusterNewFaces: boolean;
databaseCleanup: boolean;
generateMemories: boolean;
missingThumbnails: boolean;
removeStaleUploads: SystemConfigRemovePartialUploadsDto;
startTime: string;
syncQuotaUsage: boolean;
};