Releases: go-co-op/gocron
Releases · go-co-op/gocron
v1.6.1
Fixed
- Clear: remove also tags from scheduler (#182) @Dasio
- find jobs not by substring but by exact match (#185) @skinnaj
- Optimize computing startAtTime in the future (#189) @Dasio
- Update() func supports crontab funcs (#191) @JohnRoesler
- wait for interval respected by cron func (#192) @JohnRoesler
v1.6.0
Added
- Support for multiple days in a week (#164) @joaolcaas
Fixed
- fixing invalid test behavior (#167) @joaolcaas
- fix weekly interval greater than 1 week (#168) @joaolcaas
- fix the monthly interval (#173) @joseccandido
- fix RemoveByTag() so it also removes the unique tag if set (#178) @skinnaj
- fix Remove recursive read locks in job present check (#177) @migopsdinesh & @dineshkumar02
Chores
- add example for job.weekdays() and tweak scheduler week examlpes, go mod tidy (#166) @JohnRoesler
- Add start example (#170) @JohnRoesler
v1.5.0
Added
- add funcs for
WaitForSchedule
andWaitForScheduleAll
to allow forcing jobs to wait for the first interval rather than running the job immediately (#162) @JohnRoesler
v1.4.0
Added
- add
CronWithSeconds()
to accept cron expressions with seconds (#156) @JohnRoesler
Fixed
- set the scheduler location explicitly in the cron expression (#156) @JohnRoesler
- reset the job task's
context.Context
when updating allowing singleton and other limited modes to update (#160) @JohnRoesler - handle occasional occurrence of double run on daily job when within the same second (#159) @JohnRoesler
Chores
- Bump github.com/robfig/cron/v3 from 3.0.0 to 3.0.1 (#158) @dependabot
v1.3.1
Fixed
- A bug in the scheduler was preventing hour and minute range use in cron expressions (#154) @JohnRoesler - thanks to @zry98 for reporting (#153)
v1.3.0
Added
- cron expression support (#150) @JohnRoesler
- thanks to the robfig/cron repo for the great work we're leveraging to support cron
v1.2.0
Added
- add support for running all jobs with a given tag -
RunByTag
&RunByTagWithDelay
(#149) @arjunmahishi - add support for rescheduling jobs (#145) @JohnRoesler
Fixed
- fixed the
RemoveByTag
function so that it removes all jobs with a given tag. Not just the first job encountered (#149) @arjunmahishi
Chores
- create a SECURITY.md @JohnRoesler
- add codeql for security code scanning (#146) @JohnRoesler
- add dependabot for actions and go deps (#147) @JohnRoesler
- bump actions/setup-go from v1 to v2.1.3 (#148) @dependabot
v1.1.0
Added
- validation of the length of
Do()
function parameters - a mismatch returns an error (#144) - thanks @mikhailbolshakov
First stable release!
Here we go folks. Thanks for all the feedback as we've worked towards this major release. It's been a long time coming and it's finally here.
Keep the issue reports and feature requests coming! Keep on coding out there.
v0.8.0
Added
- when multiple errors occur creating a job, they are now wrapped and returned (#130) @JohnRoesler
- allowing the enforcement of unique tags when set through the scheduler with
Scheduler.TagsUnique()
(#136) @JohnRoesler - a new explicit interval func
Milliseconds()
- this was already available throughEvery(500ms)
(#137) @JohnRoesler
Changed
- the
Job.Err
func has been renamedJob.Error
(#137) @JohnRoesler - the default behavior of
LimitRunsTo
removes the job from the scheduler (#137) @JohnRoesler- nothing can be done with a stopped job in the scheduler so we opted to remove the job instead
At()
now accepts eitherstring
ortime.Time
(parses out only h,m,s) (#137) @JohnRoesler
Removed
- the
RemoveAfterLastRun
func has been removed (#137) @JohnRoesler
Chores
- to go 1.16 (#135) @JohnRoesler
- updates to the readme including a design diagram (513e278, 740bcdb) @JohnRoesler
- added a code of conduct (88fbecc) @JohnRoesler
- updated the gitignore (a55ceb8) @JohnRoesler