v0.6.0
Pre-release
Pre-release
Added
- allow starting Jobs at a date in the past (#113) @calvinmclean
- add job limit and remove after last run to scheduler chain (#116) @JohnRoesler
scheduler.Every()
now accepts int, time.Duration, and string to allow any desired duration between runs (#119) @JohnRoesler
Changed
- sets the default unit to seconds (#112) @JohnRoesler
- catches a bad interval of 0 with an error (#112) @JohnRoesler
- clarified several function names and accepted values (#121) @JohnRoesler
- The job
Tag
func now accepts a variadic string parameter instead of a slice - The scheduler
SetTag
is nowTag
and also accepts a variadic string parameter - The scheduler
RemoveJobByTag
is nowRemoveByTag
to be consistent withRemove
andRemoveByReference
- The scheduler
RunAllWithDelay
func now accepts a time.Duration instead of an int representing seconds - The scheduler
Scheduled
func is nowTaskPresent
- scheduled was confusing name because until the scheduler is started, it's not actually "scheduled to run". Now you can check whether the task is present in the scheduler.
- The job
Fixed
- fixed the bug with jobs not being stopped upon removal (5027f53) thanks @huage1994
- catches nil timer with stopTimer() func (#112) @JohnRoesler
- fix a bug where the monthly calculation failed rounding to midnight (#104) @sdw2330976
- fix bug with limit runs to not stopping jobs (#114) @JohnRoesler
Removed
- remove stopChan from Scheduler (#105) @arjunmahishi
Chores
- documentation clean up (#112) @JohnRoesler
- add golangci to actions - and address lint issues (#117) (#118) @JohnRoesler
- add examples for all funcs to godoc (#121) @JohnRoesler