We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gocron cronjob cant parse "LW", errors with invalid syntax
` package main import ( "log" "github.com/go-co-op/gocron/v2" ) func main() { s, err := gocron.NewScheduler() if err != nil { log.Fatal(err) }
_, err = s.NewJob( gocron.CronJob("0 0 5 LW * ?", true), gocron.NewTask(func() { log.Println("Test job 1") }), ) if err != nil { log.Printf("Test job 1 err: %v", err) } _, err = s.NewJob( gocron.CronJob("0 5 LW * ?", false), gocron.NewTask(func() { log.Println("Test job 2") }), ) if err != nil { log.Printf("Test job 2 err: %v", err) } s.Start() for { }
} `
v2.13.0
The expression should be parsed since its a valid cron expression
The text was updated successfully, but these errors were encountered:
Hi @rsvix,
A few thoughts:
L W ?
Is it fair to say, this is actually a feature request to support:
Sorry, something went wrong.
Hello @JohnRoesler,
Thats fair, i will update it to a feature request Sad that https://github.com/robfig/cron seems to be abandoned and the PRs are still not merged.
No branches or pull requests
Describe the bug
Gocron cronjob cant parse "LW", errors with invalid syntax
To Reproduce
`
package main
import (
"log"
"github.com/go-co-op/gocron/v2"
)
func main() {
s, err := gocron.NewScheduler()
if err != nil {
log.Fatal(err)
}
}
`
Version
v2.13.0
Expected behavior
The expression should be parsed since its a valid cron expression
The text was updated successfully, but these errors were encountered: