Expose job data, bugfixes, start immediately default
Pre-release
Pre-release
Added
- Expose the Job's lastRun, nextRun and runCount (#83) @arjunmahishi
Changed
scheduleNextRun
now uses duration (#79) @Streppel- Start jobs immediately by default -
StartImmediately()
has been deprecated (#82) @JohnRoesler- To achieve the prior behavior of starting after the interval, use
StartAt()
s := gocron.NewScheduler(time.UTC) _, _ = s.Every(1).Hour().StartAt(time.Now().Add(time.Hour() * 1)).Do(task) s.StartBlocking()
- To achieve the prior behavior of starting after the interval, use
Fixed
- Re-set the job's last run in scheduler run() (#81) @JohnRoesler
- Fix runnableJobs where subsequent jobs are never checked (#87) @JohnRoesler
- Handle job creation errors (#89) @arjunmahishi
Removed
Chores
- Add funding doc d12fdaf b7cd523 😃 @JohnRoesler