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
_, _=c.AddJob("*/10 * * * * *", func() {
fmt.Println("this job runs as soon as cron is started, then at every 10th seconds", time.Now())
}, cron.RunOnStart)
After reading the docs I couldn't find a way to run crons now as soon as i start , and then later at the next interval.
Is there a way to do this currently?
If not I think its a worthy feature to test code easier instead of modifying 1000 registered functions to run every 1 second
The text was updated successfully, but these errors were encountered: