Skip to content

Releases: go-co-op/gocron

Fix bug in removeByCondition

16 Jul 15:29
5af127a
Compare
Choose a tag to compare
Pre-release

Fixed

  • Fixed a bug in the removeByCondition func trying to access elements outside the slice range #46 - thank you @ridwanakf for your contribution!

New public API to start schedulers & functionality

12 May 20:07
4cc1bfb
Compare
Choose a tag to compare

Bug fixes & refactoring

10 Apr 20:07
602934f
Compare
Choose a tag to compare
Pre-release

Added

  • Started an example_test.go file to provide examples in our go documentation #15

Changed

  • Moved job locker into separate package #21
  • Fixed bug where jobs were executed twice in a row #20 #23

Initial pre-release

28 Mar 19:55
85bbc7c
Compare
Choose a tag to compare
Initial pre-release Pre-release
Pre-release

We have forked this repo from https://github.com/jasonlvhit/gocron, because as the readme notes - we haven't heard from Jason in a long time and want to keep the code progressing.

This is initial release provides some changes / updates to the way the prior code performed.

Added

  • added the timeHelper interface to abstract the use of the time package and support future time mocking for testing

Changed

  • the jobs array is now a slice
  • the scheduling logic was transferred from the job handling scheduling itself to the scheduler handling scheduling of all jobs
  • .From(gocron.NextTick) was changed to .StartImmediately
  • moved StartAt into the scheduler
  • the scheduler stopped chan uses an empty struct instead of a bool

Removed

  • removed the default scheduler
  • removed the mustInterval func - Second and Seconds provide the same behavior and are for grammar / semantics only at this point