Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[server] mark queue as deprecated

Neeraj Guptabb68b22adb97
diff --git a/server/pkg/repo/queue.go b/server/pkg/repo/queue.go
index 1f706aa88d..49544dbc8c 100644
--- a/server/pkg/repo/queue.go
+++ b/server/pkg/repo/queue.go
@@ -23,17 +23,17 @@ var itemDeletionDelayInMinMap = map[string]int64{
DropFileEncMedataQueue: -1 * 24 * 60, // -ve value to ensure attributes are immediately removed
DeleteObjectQueue: 45 * 24 * 60, // 45 days in minutes
DeleteEmbeddingsQueue: -1 * 24 * 60, // -ve value to ensure embeddings are immediately removed
- TrashCollectionQueue: -1 * 24 * 60, // -ve value to ensure collections are immediately marked as trashed
TrashCollectionQueueV3: -1 * 24 * 60, // -ve value to ensure collections are immediately marked as trashed
TrashEmptyQueue: -1 * 24 * 60, // -ve value to ensure empty trash request are processed in next cron run
RemoveComplianceHoldQueue: -1 * 24 * 60, // -ve value to ensure compliance hold is removed in next cron run
}
const (
- DropFileEncMedataQueue string = "dropFileEncMetata"
- DeleteObjectQueue string = "deleteObject"
- DeleteEmbeddingsQueue string = "deleteEmbedding"
- OutdatedObjectsQueue string = "outdatedObject"
+ DropFileEncMedataQueue string = "dropFileEncMetata"
+ DeleteObjectQueue string = "deleteObject"
+ DeleteEmbeddingsQueue string = "deleteEmbedding"
+ OutdatedObjectsQueue string = "outdatedObject"
+ // Deprecated: Keeping it till we clean up items from the queue DB.
TrashCollectionQueue string = "trashCollection"
TrashCollectionQueueV3 string = "trashCollectionV3"
TrashEmptyQueue string = "trashEmpty"