We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9029d5f commit ed6e97fCopy full SHA for ed6e97f
1 file changed
pkg/ddc/alluxio/cache.go
@@ -236,6 +236,10 @@ func (e *AlluxioEngine) getGracefulShutdownLimits() (gracefulShutdownLimits int3
236
return
237
}
238
239
+// getCleanCacheGracePeriodSeconds retrieves the grace period in seconds for cleaning the cache.
240
+// It first attempts to get the runtime configuration. If successful, it checks if the grace period
241
+// is specified in the runtime's CleanCachePolicy. If specified, it returns that value. Otherwise,
242
+// it returns a default value.
243
func (e *AlluxioEngine) getCleanCacheGracePeriodSeconds() (cleanCacheGracePeriodSeconds int32, err error) {
244
runtime, err := e.getRuntime()
245
if err != nil {
0 commit comments