Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TestingOnlySynchronizationHelper is used for testing purposes to wait for the log retention scheduler to finish. TestingOnlySynchronizationHelper *sync.WaitGroup )
Functions ¶
func DeleteExpiredTaskLogs ¶
DeleteExpiredTaskLogs deletes task logs older than days time when defined and non-negative. Task configured values may override the default provided number of days for retention.
func Schedule ¶ added in v0.750.0
func Schedule(config model.LogRetentionPolicy) error
Schedule begins a log deletion schedule according to the provided LogRetentionPolicy.
func SetupScheduler ¶ added in v0.750.0
func SetupScheduler(opts ...gocron.SchedulerOption)
SetupScheduler creates a new scheduler with the provided options. Should only be called by init() or test functions, and will panic on error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.