Fix scheduler cleanup edge cases
This commit is contained in:
@@ -217,7 +217,7 @@ func (c *Config) Validate() error {
|
||||
return fmt.Errorf("check %q: timeout must be > 0", ch.ID)
|
||||
}
|
||||
if ch.Interval.Duration < 0 {
|
||||
return fmt.Errorf("check %q: interval must be > 0", ch.ID)
|
||||
return fmt.Errorf("check %q: interval must not be negative", ch.ID)
|
||||
}
|
||||
ch.Cron = strings.TrimSpace(ch.Cron)
|
||||
hasInterval := ch.Interval.Duration > 0
|
||||
|
||||
Reference in New Issue
Block a user