Skip to content

Commit

Permalink
Fit the supported cron format to 'standard Linux cron'
Browse files Browse the repository at this point in the history
Signed-off-by: jorturfer <jorge_turrado@hotmail.es>
  • Loading branch information
JorTurFer committed Aug 18, 2021
1 parent edbf3b9 commit 19b8913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scalers/cron_scaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func parseCronMetadata(config *ScalerConfig) (*cronMetadata, error) {
} else {
return nil, fmt.Errorf("no timezone specified. %s", config.TriggerMetadata)
}
parser := cron.NewParser(cron.SecondOptional | cron.Minute | cron.Hour | cron.Dom | cron.Month | cron.Dow)
parser := cron.NewParser(cron.Minute | cron.Hour | cron.Dom | cron.Month | cron.Dow)
if val, ok := config.TriggerMetadata["start"]; ok && val != "" {
_, err := parser.Parse(val)
if err != nil {
Expand Down

0 comments on commit 19b8913

Please sign in to comment.