Skip to content

v0.6.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@JohnRoesler JohnRoesler released this 09 Feb 15:36
507947a

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 now Tag and also accepts a variadic string parameter
    • The scheduler RemoveJobByTag is now RemoveByTag to be consistent with Remove and RemoveByReference
    • The scheduler RunAllWithDelay func now accepts a time.Duration instead of an int representing seconds
    • The scheduler Scheduled func is now TaskPresent - 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.

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

Chores