(hasWeekdaysSuffix bool)
| 414 | } |
| 415 | |
| 416 | func (p *ScheduleParser) parseHourlyBase(hasWeekdaysSuffix bool) (string, error) { |
| 417 | scheduleLog.Printf("Parsing hourly schedule: weekdays=%v", hasWeekdaysSuffix) |
| 418 | if len(p.tokens) == 1 || (len(p.tokens) == 3 && hasWeekdaysSuffix) { |
| 419 | return formatHourlyIntervalCron(1, hasWeekdaysSuffix), nil |
| 420 | } |
| 421 | return "", errors.New("hourly schedule does not support 'at time' clause, use 'hourly' without additional parameters") |
| 422 | } |
| 423 | |
| 424 | func (p *ScheduleParser) parseWeeklyBase() (string, error) { |
| 425 | scheduleLog.Printf("Parsing weekly schedule: token_count=%d", len(p.tokens)) |
no test coverage detected