Skip to content

Releases

v2.3.0

Choose a tag to compare

@cmilesio cmilesio released this 02 Dec 20:08
aa9c76f

Run scheduled jobs across replicas with the GoForj Cache backend your application already uses. Scheduler v2.3.0 adds occurrence claims and shared pause controls alongside owner-aware leases.

  • Use NewCacheLocker for overlap protection, OncePerOccurrence to retain a dispatch claim, and WithPauseStore to pause recurring work across replicas.
  • Use RunIf for conditions evaluated on each run. Calendar filters follow the job's timezone or the scheduler default, including across day boundaries.
  • Manual runs respect execution limits and locks. Cancellation stops pending policy callbacks and task startup, and admin pause controls identify native jobs they cannot pause.
go get github.com/goforj/scheduler/v2@v2.3.0

Requires Go 1.25 or newer. Keep fluent registration on the returned builder. Drain older workers that share lock keys before upgrading to owner-aware leases. Redis-backed locks require EVAL permission. See the upgrade guide for naming and execution changes.

Full changelog

v2.2.0

Choose a tag to compare

@cmilesio cmilesio released this 01 Dec 21:32
1736839

Scheduler v2.2.0 updates gocron to v2.23.2 and the Redis cache driver to v0.4.3, bringing upstream scheduling, daylight saving time, run-limit, and task validation fixes. It also includes the dependency, documentation, and repository automation updates merged since v2.1.4.

Requires Go 1.25 or newer, up from Go 1.24.4 in v2.1.4. The selected golang.org/x/sys v0.47.0 requires Go 1.25. Projects using older toolchains can stay on v2.1.4. Existing exported scheduler signatures remain unchanged.

go get github.com/goforj/scheduler/v2@v2.2.0

Full changelog

v1.0.0

Choose a tag to compare

@cmilesio cmilesio released this 17 Dec 10:16