Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/ddc/alluxio/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ func (e *AlluxioEngine) getGracefulShutdownLimits() (gracefulShutdownLimits int3
return
}

// getCleanCacheGracePeriodSeconds retrieves the grace period in seconds for cleaning the cache.
// It first attempts to get the runtime configuration. If successful, it checks if the grace period
// is specified in the runtime's CleanCachePolicy. If specified, it returns that value. Otherwise,
// it returns a default value.
func (e *AlluxioEngine) getCleanCacheGracePeriodSeconds() (cleanCacheGracePeriodSeconds int32, err error) {
runtime, err := e.getRuntime()
if err != nil {
Expand Down
Loading