Skip to content

Releases: go-co-op/gocron

v2.0.0-alpha-1

08 Nov 15:47
c8c4238
Compare
Choose a tag to compare
v2.0.0-alpha-1 Pre-release
Pre-release

gocron v2

This is an early and incomplete release of v2 for gocron. The goal here is to give you all a chance to start playing around with the interfaces and functionality and give feedback.

From the v2 issue:

The main focuses are:

  • no more sharing our resources across goroutines and therefore no mutexes!
  • redesigning the scheduler to be an interface (to allow for easier testing by users)
  • the new job definitions will remove all the potential issues of pairing incompatible types / features together and focus on a complete definition of configuration needed for that particular type of job
  • keeping feature parity close to v1 (although might be a few minor losses of un-tenable features)

Quite a few of the main features are implemented and working.

  • easier manipulation of time in testing thanks to https://github.com/jonboulle/clockwork
  • duration, cron, weekly, monthly, and random jobs
  • lots of job and scheduler options (e.g. singleton, limit mode)

The best place to discuss v2 is: #576

Please give feedback! (Reach out on slack if you're interested in contributing so we can coordinate work 😄 )

v1.35.2

10 Oct 13:30
0f6d926
Compare
Choose a tag to compare

What's Changed

  • Revert "fix: setting weeks interval greater than 1 with a weekday, scheduling too early by @XiXiangFiles" by @JohnRoesler in #591
    • This will require more testing and likely some rework of the week functionality. This change, while some might consider it a fix, broke the current behavior that has been relied upon.

Full Changelog: v1.35.1...v1.35.2

v1.35.1

09 Oct 21:16
e287edf
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.35.0...v1.35.1

v1.35.0

29 Sep 19:28
a2d06eb
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.34.2...v1.35.0

v1.34.2

21 Sep 16:37
e07c266
Compare
Choose a tag to compare

Fixes

  • fix: removing a job, the job was not being stopped with limit mode by @JohnRoesler in #573
  • fix Scheduler.NextRun() not returning the correct value (#574) by @bbaa-bbaa in #575

New Contributors

Full Changelog: v1.34.1...v1.34.2

v1.34.1

21 Sep 00:47
7a102da
Compare
Choose a tag to compare

Fixes

  • docs: fix WaitMode and Milliseconds documentation by @husam-e in #570
  • reschedule limit mode was broken - fixing the inc/dec by @JohnRoesler in #572

New Contributors

Full Changelog: v1.34.0...v1.34.1

v1.34.0

18 Sep 15:39
7fea08c
Compare
Choose a tag to compare

What's Changed

Fixes

Chores

Full Changelog: v1.33.1...v1.33.2

v1.33.1

30 Aug 18:54
d7dd276
Compare
Choose a tag to compare

What's Changed

  • fix more than 1 day before last day of month gets stuck in a loop by @JohnRoesler in #555

Full Changelog: v1.33.0...v1.33.1

v1.33.0

29 Aug 02:55
b86d02b
Compare
Choose a tag to compare

What's Changed

  • don't accept a *Job in Job for Update if the ptr address doesn't match by @JohnRoesler in #549
  • every X days should run on the same day if the At() time has yet to come by @JohnRoesler in #553

Documentation & Version Bumps

Full Changelog: v1.32.1...v1.33.0

v1.32.1

21 Aug 03:31
39d4071
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.32.0...v1.32.1