Skip to content

Releases: go-co-op/gocron

v1.5.0

18 Apr 01:43
c7671c0
Compare
Choose a tag to compare

Added

  • add funcs for WaitForSchedule and WaitForScheduleAll to allow forcing jobs to wait for the first interval rather than running the job immediately (#162) @JohnRoesler

v1.4.0

13 Apr 18:34
f90a556
Compare
Choose a tag to compare

Added

  • add CronWithSeconds() to accept cron expressions with seconds (#156) @JohnRoesler

Fixed

  • set the scheduler location explicitly in the cron expression (#156) @JohnRoesler
  • reset the job task's context.Context when updating allowing singleton and other limited modes to update (#160) @JohnRoesler
  • handle occasional occurrence of double run on daily job when within the same second (#159) @JohnRoesler

Chores

v1.3.1

08 Apr 14:28
e821a9f
Compare
Choose a tag to compare

Fixed

  • A bug in the scheduler was preventing hour and minute range use in cron expressions (#154) @JohnRoesler - thanks to @zry98 for reporting (#153)

v1.3.0

07 Apr 15:25
93df6cb
Compare
Choose a tag to compare

Added

v1.2.0

03 Apr 12:15
4cd458f
Compare
Choose a tag to compare

Added

Fixed

  • fixed the RemoveByTag function so that it removes all jobs with a given tag. Not just the first job encountered (#149) @arjunmahishi

Chores

v1.1.0

26 Mar 15:52
d70cabe
Compare
Choose a tag to compare

Added

  • validation of the length of Do() function parameters - a mismatch returns an error (#144) - thanks @mikhailbolshakov

First stable release!

13 Mar 04:15
a55ceb8
Compare
Choose a tag to compare

Here we go folks. Thanks for all the feedback as we've worked towards this major release. It's been a long time coming and it's finally here.

Keep the issue reports and feature requests coming! Keep on coding out there.

v0.8.0

11 Mar 04:11
a55ceb8
Compare
Choose a tag to compare
v0.8.0 Pre-release
Pre-release

Added

  • when multiple errors occur creating a job, they are now wrapped and returned (#130) @JohnRoesler
  • allowing the enforcement of unique tags when set through the scheduler with Scheduler.TagsUnique() (#136) @JohnRoesler
  • a new explicit interval func Milliseconds() - this was already available through Every(500ms) (#137) @JohnRoesler

Changed

  • the Job.Err func has been renamed Job.Error (#137) @JohnRoesler
  • the default behavior of LimitRunsTo removes the job from the scheduler (#137) @JohnRoesler
    • nothing can be done with a stopped job in the scheduler so we opted to remove the job instead
  • At() now accepts either string or time.Time (parses out only h,m,s) (#137) @JohnRoesler

Removed

Chores

v0.7.1

05 Mar 04:48
88f1ca4
Compare
Choose a tag to compare
v0.7.1 Pre-release
Pre-release

Fixed

  • Clear() now properly stops all jobs before removing them from the scheduler (#134) @JohnRoesler

Chores

  • Updated the readme with details around different job modes and combinations of schedule options (2a8757a) @JohnRoesler

v0.7.0

26 Feb 19:03
f251977
Compare
Choose a tag to compare
v0.7.0 Pre-release
Pre-release

Added

  • singleflight mode, if the same job tries to run again while a previous run hasn't finished yet, it will either wait to run or skip the run (#123) thanks @farwydi
  • the ability to limit the number of concurrent jobs, useful for resource intensive jobs (#126) thanks @dustin-decker

Changed

  • we now send jobs to a job executor through channels instead of handling them directly in the scheduler, allowing us to get rid of many mutexes (#122) @JohnRoesler

Fixed