Skip to content

Releases: go-co-op/gocron

v2.15.0

23 Jan 20:26
cf2f500
Compare
Choose a tag to compare

What's New

// 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

09 Jan 03:06
cc66c78
Compare
Choose a tag to compare

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

03 Jan 16:47
31b4eca
Compare
Choose a tag to compare
v2.14.2-rc1 Pre-release
Pre-release

Release candidate for PR: #810

Full Changelog: v2.14.1...v2.14.2-rc1

v2.14.1

03 Jan 16:19
bf75107
Compare
Choose a tag to compare

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

17 Dec 17:38
c180381
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.13.0...v2.14.0

v2.13.0

12 Dec 04:25
edb1475
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.12.4...v2.13.0

v2.12.4

20 Nov 18:21
dec269f
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.12.3...v2.12.4

v2.12.3

31 Oct 19:56
a47779d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.12.2...v2.12.3

v2.12.2

31 Oct 16:43
46bcd8e
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.12.1...v2.12.2

v2.12.1

20 Sep 12:01
838bd51
Compare
Choose a tag to compare

What's Changed

  • Fix CPU spike / max-out in One-time job when 2 or more equal times are provided by @rbroggi in #779

Full Changelog: v2.12.0...v2.12.1