Releases: go-co-op/gocron
Releases · go-co-op/gocron
v2.16.0
What's Changed
Bug fixes
- fixes related to the bug where a job unexpectedly runs twice by @JohnRoesler in #810
- fix scheduler restart by @27149chen in #825
- removes nextRuns in the past when job skipped by locker #828 by @manuelarte in #829
Chores
- go to 1.21, upgrade deps by @JohnRoesler in #822
- replace "golang.org/x/exp" with standard libraries by @apocelipes in #823
- Bump golangci/golangci-lint-action from 6.2.0 to 6.3.2 by @dependabot in #827
- fix err assertion in TestScheduler_RemoveJob by @alexandear in #830
- Bump golangci/golangci-lint-action from 6.3.2 to 6.5.0 by @dependabot in #831
- re-enable goleak detection in ci by @JohnRoesler in #832
- chore: add go1.24 to ci by @apocelipes in #833
New Contributors
- @alexandear made their first contribution in #830
- @Dojeto made their first contribution in #834
Full Changelog: v2.15.0...v2.16.0
v2.15.0
What's New
- New method WithContext supports providing a parent context by @27149chen in #819 & @JohnRoesler in #820
// WithContext sets the parent context for the job.
// If you set the first argument of your Task func to be a context.Context,
// gocron will pass in the provided context to the job and will cancel the
// context on shutdown. If you cancel the context the job will no longer be
// scheduled as well. This allows you to both control the job via a context
// and listen for and handle cancellation within your job.
- Job task function now supports passing a ctx if the first argument in your function is a
context.Context
by @27149chen in #819 & @JohnRoesler in #820
// NewTask provides the job's task function and parameters.
// If you set the first argument of your Task func to be a context.Context,
// gocron will pass in a context (either the default Job context, or one
// provided via WithContext) to the job and will cancel the context on shutdown.
// This allows you to listen for and handle cancellation within your job.
Chores
- Bump golangci/golangci-lint-action from 6.1.1 to 6.2.0 by @dependabot in #817
Full Changelog: v2.14.2...v2.15.0
v2.14.2
What's Changed
- feat: allow disabling global distributed locker per job by @seinshah in #811
- feat(event listener): introduce BeforeJobRunsSkipIfBeforeFuncErrors as a new Eventlistener by @FalcoSuessgott in #813
New Contributors
Full Changelog: v2.14.1...v2.14.2
v2.14.2-rc1
Release candidate for PR: #810
Full Changelog: v2.14.1...v2.14.2-rc1
v2.14.1
What's Changed
- BUG FIX: creating a new slice in several job options because appending modifies original by @JohnRoesler in #809
Full Changelog: v2.14.0...v2.14.1
v2.14.0
What's Changed
- parse time.Time from AtTime by @JohnRoesler in #806
Full Changelog: v2.13.0...v2.14.0
v2.13.0
What's Changed
- Bump github.com/stretchr/testify from 1.9.0 to 1.10.0 by @dependabot in #801
- stop timeout timers when no longer needed by @JohnRoesler in #803
- feat(monitor): introduce MonitorStatus by @FalcoSuessgott in #780
New Contributors
- @FalcoSuessgott made their first contribution in #780
Full Changelog: v2.12.4...v2.13.0
v2.12.4
What's Changed
- Bump golangci/golangci-lint-action from 6.1.0 to 6.1.1 by @dependabot in #781
- fix overly greedy panic handler by @JohnRoesler in #800
Full Changelog: v2.12.3...v2.12.4
v2.12.3
What's Changed
- update mocks with latest job/scheduler changes by @JohnRoesler in #794
Full Changelog: v2.12.2...v2.12.3
v2.12.2
What's Changed
- dailyjob should not allow interval zero by @JohnRoesler in #791
- weekly and monthly jobs should not allow zero interval by @JohnRoesler in #792
Full Changelog: v2.12.1...v2.12.2