Ver Fonte

[server] mark queue as deprecated

Neeraj Gupta há 1 ano atrás
pai
commit
bb68b22adb
1 ficheiros alterados com 5 adições e 5 exclusões
  1. 5 5
      server/pkg/repo/queue.go

+ 5 - 5
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"