Skip to content

Commit

Permalink
fix next schedule error
Browse files Browse the repository at this point in the history
  • Loading branch information
Son Roy Almerol committed Nov 14, 2024
1 parent 3cc05e5 commit 4e76348
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/store/systemd_time.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ func getNextSchedule(job *Job) (*time.Time, error) {
}

nextStr := strings.Join(fields[0:4], " ")
if strings.TrimSpace(nextStr) == "-" {
return nil, nil
}

nextTime, err := time.Parse(layout, nextStr)
if err != nil {
return nil, fmt.Errorf("getNextSchedule: error parsing Next time -> %w", err)
Expand Down

0 comments on commit 4e76348

Please sign in to comment.