Files
cybertron/configs/jobScheduler.go
2024-12-10 14:57:21 +05:30

16 lines
313 B
Go

package configs
type JobSchedulerConfig struct {
MaxRetentionDays int
}
func NewJobSchedulerConfig() *JobSchedulerConfig {
return &JobSchedulerConfig{
MaxRetentionDays: getInt("jobScheduler.retentionInDays", true),
}
}
func (p *JobSchedulerConfig) GetMaxRetentionDays() int {
return p.MaxRetentionDays
}