We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df3d2bb commit e889f3fCopy full SHA for e889f3f
1 file changed
pkg/ddc/alluxio/cache.go
@@ -221,6 +221,10 @@ func (e *AlluxioEngine) getGracefulShutdownLimits() (gracefulShutdownLimits int3
221
return
222
}
223
224
+// getCleanCacheGracePeriodSeconds retrieves the grace period in seconds for cleaning the cache.
225
+// It first attempts to get the runtime configuration. If successful, it checks if the grace period
226
+// is specified in the runtime's CleanCachePolicy. If specified, it returns that value. Otherwise,
227
+// it returns a default value.
228
func (e *AlluxioEngine) getCleanCacheGracePeriodSeconds() (cleanCacheGracePeriodSeconds int32, err error) {
229
runtime, err := e.getRuntime()
230
if err != nil {
0 commit comments