Skip to content

Commit

Permalink
hardcode pruner values for minio wipe
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxcapades committed Feb 7, 2024
1 parent 30b3d64 commit 70d6341
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import org.veupathdb.vdi.lib.common.env.optDuration
import org.veupathdb.vdi.lib.common.env.require
import org.veupathdb.vdi.lib.s3.datasets.util.S3Config
import kotlin.time.Duration
import kotlin.time.Duration.Companion.minutes

data class PrunerConfig(
val s3Config: S3Config,
Expand All @@ -19,7 +20,9 @@ data class PrunerConfig(
constructor(env: Environment) : this (
s3Config = S3Config(env),
bucketName = BucketName(env.require(EnvKey.S3.BucketName)),
pruneAge = env.optDuration(EnvKey.Pruner.DeletionThreshold)
?: PrunerConfigDefaults.DeletionThreshold
// pruneAge = env.optDuration(EnvKey.Pruner.DeletionThreshold)
// ?: PrunerConfigDefaults.DeletionThreshold
// FIXME: REMOVE THIS AFTER MINIO WIPE
pruneAge = 5.minutes
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ data class PrunerModuleConfig(
constructor() : this(System.getenv())

constructor(env: Environment) : this(
pruningInterval = env.optDuration(EnvKey.Pruner.PruningInterval)
?: Defaults.PruningInterval,
// FIXME: Remove this after MinIO wipe!
pruningInterval = 1.hours,
// pruningInterval = env.optDuration(EnvKey.Pruner.PruningInterval)
// ?: Defaults.PruningInterval,
wakeupInterval = env.optDuration(EnvKey.Pruner.PruningWakeupInterval)
?: Defaults.WakeupInterval
)
Expand Down

0 comments on commit 70d6341

Please sign in to comment.