Skip to content

v2.3.0

Latest

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