Use config to determine deletion lifespan in storage service.

This commit is contained in:
Michelle Tang
2025-06-05 11:12:23 -04:00
committed by Greyson Parrelli
parent df2e88eaac
commit 6b6980811b
6 changed files with 53 additions and 14 deletions

View File

@@ -1114,5 +1114,16 @@ object RemoteConfig {
hotSwappable = true
)
/**
* Also determines how long an unregistered/deleted record should remain in storage service
*/
val messageQueueTime: Long by remoteValue(
key = "global.messageQueueTimeInSeconds",
hotSwappable = true
) { value ->
val inSeconds = value.asLong(45.days.inWholeSeconds)
inSeconds.seconds.inWholeMilliseconds
}
// endregion
}