Repository navigation
Releases
v2.3.0
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
NewCacheLockerfor overlap protection,OncePerOccurrenceto retain a dispatch claim, andWithPauseStoreto pause recurring work across replicas. - Use
RunIffor 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.0Requires 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.
v2.2.0
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.0v1.0.0
Full Changelog: https://github.com/goforj/scheduler/commits/v1.0.0