Files
cybertron/configs/jobScheduler.go

16 lines
313 B
Go
Raw Normal View History

2024-12-10 14:57:21 +05:30
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
}