You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the SingletonMode the module panics with the error "call of reflect.Value.Type on zero Value". The weird thing is, this error applys only 3 of 4 times. Sometimes the applications starts well.
//maximal werden 5 Jobs gleichzeitig durchgeführt
//jeder Job danach wird einfach in eine Warteschlange gesetzt
Scheduler.SetMaxConcurrentJobs(5, gocron.WaitMode)
//wenn der Job noch läuft, und eigentlich jetzt wieder an der Zeit durchgeführt werden sollte
//wird er nicht wieder ausgeführt
Scheduler.SingletonMode()
defer Scheduler.StartAsync()
}`
Version
go 1.18
github.com/go-co-op/gocron v1.16.2
Expected behavior
No Panic at start of the application
The text was updated successfully, but these errors were encountered:
Describe the bug
When using the SingletonMode the module panics with the error "call of reflect.Value.Type on zero Value". The weird thing is, this error applys only 3 of 4 times. Sometimes the applications starts well.
To Reproduce
My Setup is like this
`func InitScheduler() {
gocron.SetPanicHandler(func(jobName string, recoverData interface{}) {
logs.Logger.Panicln("jobName", jobName, "error", recoverData)
})
Scheduler = gocron.NewScheduler(time.UTC)
}`
Version
go 1.18
github.com/go-co-op/gocron v1.16.2
Expected behavior
No Panic at start of the application
The text was updated successfully, but these errors were encountered: