axetroy / go-server

Golang写的一些基础后端服务,基本包含大多数后端需要的服务
https://axetroy.github.io/go-server/
MIT License
211 stars 32 forks source link

fix(deps): update module github.com/go-co-op/gocron to v1 #425

Open renovate[bot] opened 3 years ago

renovate[bot] commented 3 years ago

WhiteSource Renovate

This PR contains the following updates:

Package Type Update Change
github.com/go-co-op/gocron require major v0.3.3 -> v1.9.0

Release Notes

go-co-op/gocron ### [`v1.9.0`](https://togithub.com/go-co-op/gocron/releases/v1.9.0) [Compare Source](https://togithub.com/go-co-op/gocron/compare/v1.8.0...v1.9.0) ##### Changed - stopping the scheduler waits for all jobs to finish before returning ([#​238](https://togithub.com/go-co-op/gocron/issues/238)) [@​Streppel](https://togithub.com/Streppel) ### [`v1.8.0`](https://togithub.com/go-co-op/gocron/releases/v1.8.0) [Compare Source](https://togithub.com/go-co-op/gocron/compare/v1.7.1...v1.8.0) ##### Added - Add support for multiple days of the month ([#​228](https://togithub.com/go-co-op/gocron/issues/228)) ty [@​denizzengin](https://togithub.com/denizzengin) - add start immediately func ([#​229](https://togithub.com/go-co-op/gocron/issues/229)) [@​JohnRoesler](https://togithub.com/JohnRoesler) ##### Changed - only days 1 through 28 are allowed for monthly schedules ([#​221](https://togithub.com/go-co-op/gocron/issues/221)) [@​JohnRoesler](https://togithub.com/JohnRoesler) ##### Fixed - Handle slice bounds check causing panic when getting the current job is called before a job exists ([#​234](https://togithub.com/go-co-op/gocron/issues/234)) ty [@​denizzengin](https://togithub.com/denizzengin) ##### Chores - refactored workflows to consider 'main' as the default branch ([#​215](https://togithub.com/go-co-op/gocron/issues/215)) ty [@​arjunmahishi](https://togithub.com/arjunmahishi) - Bump actions/setup-go from 2.1.3 to 2.1.4 ([#​220](https://togithub.com/go-co-op/gocron/issues/220)) [@​dependabot](https://togithub.com/dependabot) ### [`v1.7.1`](https://togithub.com/go-co-op/gocron/releases/v1.7.1) [Compare Source](https://togithub.com/go-co-op/gocron/compare/v1.7.0...v1.7.1) ##### Fixed - Replace tag map with thread safe sync.map ([#​212](https://togithub.com/go-co-op/gocron/issues/212)) ty [@​djenriquez](https://togithub.com/djenriquez) - Catch time.AfterFunc firing early per wall clock time ([#​214](https://togithub.com/go-co-op/gocron/issues/214)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - This is an exciting fix related to occurrences of jobs firing twice unexpectedly. TL;DR, the monotonic and wall clock times can be slightly out of sync causing functions like time.AfterFunc to fire "early" per the wall clock time, when it was accurate per monotonic time. Look into the PR + linked issues for more details. ### [`v1.7.0`](https://togithub.com/go-co-op/gocron/releases/v1.7.0) [Compare Source](https://togithub.com/go-co-op/gocron/compare/v1.6.2...v1.7.0) ##### Changed - always wait for the cron interval instead of starting immediately to mimmic actual cron behavior ([#​207](https://togithub.com/go-co-op/gocron/issues/207)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - ty to [@​andschneider](https://togithub.com/andschneider) for reporting! ##### Fixed - Fix unique tag removal ([#​211](https://togithub.com/go-co-op/gocron/issues/211)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - ty to [@​indranil-elisity](https://togithub.com/indranil-elisity) for reporting! ### [`v1.6.2`](https://togithub.com/go-co-op/gocron/releases/v1.6.2) [Compare Source](https://togithub.com/go-co-op/gocron/compare/v1.6.1...v1.6.2) ##### Fixed - handle creating a job after an update and delete ([#​194](https://togithub.com/go-co-op/gocron/issues/194)) [@​JohnRoesler](https://togithub.com/JohnRoesler) ### [`v1.6.1`](https://togithub.com/go-co-op/gocron/releases/v1.6.1) [Compare Source](https://togithub.com/go-co-op/gocron/compare/v1.6.0...v1.6.1) ##### Fixed - Clear: remove also tags from scheduler ([#​182](https://togithub.com/go-co-op/gocron/issues/182)) [@​Dasio](https://togithub.com/Dasio) - find jobs not by substring but by exact match ([#​185](https://togithub.com/go-co-op/gocron/issues/185)) [@​skinnaj](https://togithub.com/skinnaj) - Optimize computing startAtTime in the future ([#​189](https://togithub.com/go-co-op/gocron/issues/189)) [@​Dasio](https://togithub.com/Dasio) - Update() func supports crontab funcs ([#​191](https://togithub.com/go-co-op/gocron/issues/191)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - wait for interval respected by cron func ([#​192](https://togithub.com/go-co-op/gocron/issues/192)) [@​JohnRoesler](https://togithub.com/JohnRoesler) ### [`v1.6.0`](https://togithub.com/go-co-op/gocron/releases/v1.6.0) [Compare Source](https://togithub.com/go-co-op/gocron/compare/v1.5.0...v1.6.0) ##### Added - Support for multiple days in a week ([#​164](https://togithub.com/go-co-op/gocron/issues/164)) [@​joaolcaas](https://togithub.com/joaolcaas) ##### Fixed - fixing invalid test behavior ([#​167](https://togithub.com/go-co-op/gocron/issues/167)) [@​joaolcaas](https://togithub.com/joaolcaas) - fix weekly interval greater than 1 week ([#​168](https://togithub.com/go-co-op/gocron/issues/168)) [@​joaolcaas](https://togithub.com/joaolcaas) - fix the monthly interval ([#​173](https://togithub.com/go-co-op/gocron/issues/173)) [@​joseccandido](https://togithub.com/joseccandido) - fix RemoveByTag() so it also removes the unique tag if set ([#​178](https://togithub.com/go-co-op/gocron/issues/178)) [@​skinnaj](https://togithub.com/skinnaj) - fix Remove recursive read locks in job present check ([#​177](https://togithub.com/go-co-op/gocron/issues/177)) [@​migopsdinesh](https://togithub.com/migopsdinesh) & [@​dineshkumar02](https://togithub.com/dineshkumar02) ##### Chores - add example for job.weekdays() and tweak scheduler week examlpes, go mod tidy ([#​166](https://togithub.com/go-co-op/gocron/issues/166)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - Add start example ([#​170](https://togithub.com/go-co-op/gocron/issues/170)) [@​JohnRoesler](https://togithub.com/JohnRoesler) ### [`v1.5.0`](https://togithub.com/go-co-op/gocron/releases/v1.5.0) [Compare Source](https://togithub.com/go-co-op/gocron/compare/v1.4.0...v1.5.0) ##### Added - add funcs for `WaitForSchedule` and `WaitForScheduleAll` to allow forcing jobs to wait for the first interval rather than running the job immediately ([#​162](https://togithub.com/go-co-op/gocron/issues/162)) [@​JohnRoesler](https://togithub.com/JohnRoesler) ### [`v1.4.0`](https://togithub.com/go-co-op/gocron/releases/v1.4.0) [Compare Source](https://togithub.com/go-co-op/gocron/compare/v1.3.1...v1.4.0) ##### Added - add `CronWithSeconds()` to accept cron expressions with seconds ([#​156](https://togithub.com/go-co-op/gocron/issues/156)) [@​JohnRoesler](https://togithub.com/JohnRoesler) ##### Fixed - set the scheduler location explicitly in the cron expression ([#​156](https://togithub.com/go-co-op/gocron/issues/156)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - reset the job task's `context.Context` when updating allowing singleton and other limited modes to update ([#​160](https://togithub.com/go-co-op/gocron/issues/160)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - handle occasional occurrence of double run on daily job when within the same second ([#​159](https://togithub.com/go-co-op/gocron/issues/159)) [@​JohnRoesler](https://togithub.com/JohnRoesler) ##### Chores - Bump github.com/robfig/cron/v3 from 3.0.0 to 3.0.1 ([#​158](https://togithub.com/go-co-op/gocron/issues/158)) [@​dependabot](https://togithub.com/dependabot) ### [`v1.3.1`](https://togithub.com/go-co-op/gocron/releases/v1.3.1) [Compare Source](https://togithub.com/go-co-op/gocron/compare/v1.3.0...v1.3.1) ##### Fixed - A bug in the scheduler was preventing hour and minute range use in cron expressions ([#​154](https://togithub.com/go-co-op/gocron/issues/154)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - thanks to [@​zry98](https://togithub.com/zry98) for reporting ([#​153](https://togithub.com/go-co-op/gocron/issues/153)) ### [`v1.3.0`](https://togithub.com/go-co-op/gocron/releases/v1.3.0) [Compare Source](https://togithub.com/go-co-op/gocron/compare/v1.2.0...v1.3.0) ##### Added - cron expression support ([https://github.com/go-co-op/gocron/pull/150](https://togithub.com/go-co-op/gocron/pull/150)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - thanks to the [robfig/cron](https://togithub.com/robfig/cron/tree/v3) repo for the great work we're leveraging to support cron ### [`v1.2.0`](https://togithub.com/go-co-op/gocron/releases/v1.2.0) [Compare Source](https://togithub.com/go-co-op/gocron/compare/v1.1.0...v1.2.0) ##### Added - add support for running all jobs with a given tag - `RunByTag` & `RunByTagWithDelay` ([#​149](https://togithub.com/go-co-op/gocron/issues/149)) [@​arjunmahishi](https://togithub.com/arjunmahishi) - add support for rescheduling jobs ([#​145](https://togithub.com/go-co-op/gocron/issues/145)) [@​JohnRoesler](https://togithub.com/JohnRoesler) ##### Fixed - fixed the `RemoveByTag` function so that it removes all jobs with a given tag. Not just the first job encountered ([#​149](https://togithub.com/go-co-op/gocron/issues/149)) [@​arjunmahishi](https://togithub.com/arjunmahishi) ##### Chores - create a SECURITY.md [@​JohnRoesler](https://togithub.com/JohnRoesler) - add codeql for security code scanning ([#​146](https://togithub.com/go-co-op/gocron/issues/146)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - add dependabot for actions and go deps ([#​147](https://togithub.com/go-co-op/gocron/issues/147)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - bump actions/setup-go from v1 to v2.1.3 ([#​148](https://togithub.com/go-co-op/gocron/issues/148)) [@​dependabot](https://togithub.com/dependabot) ### [`v1.1.0`](https://togithub.com/go-co-op/gocron/releases/v1.1.0) [Compare Source](https://togithub.com/go-co-op/gocron/compare/v1.0.0...v1.1.0) ##### Added - validation of the length of `Do()` function parameters - a mismatch returns an error ([#​144](https://togithub.com/go-co-op/gocron/issues/144)) - thanks [@​mikhailbolshakov](https://togithub.com/mikhailbolshakov) ### [`v1.0.0`](https://togithub.com/go-co-op/gocron/releases/v1.0.0) [Compare Source](https://togithub.com/go-co-op/gocron/compare/v0.8.0...v1.0.0) 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`](https://togithub.com/go-co-op/gocron/releases/v0.8.0) [Compare Source](https://togithub.com/go-co-op/gocron/compare/v0.7.1...v0.8.0) ##### Added - when multiple errors occur creating a job, they are now wrapped and returned ([#​130](https://togithub.com/go-co-op/gocron/issues/130)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - allowing the enforcement of unique tags when set through the scheduler with `Scheduler.TagsUnique()` ([#​136](https://togithub.com/go-co-op/gocron/issues/136)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - a new explicit interval func `Milliseconds()` - this was already available through `Every(500ms)` ([#​137](https://togithub.com/go-co-op/gocron/issues/137)) [@​JohnRoesler](https://togithub.com/JohnRoesler) ##### Changed - the `Job.Err` func has been renamed `Job.Error` ([#​137](https://togithub.com/go-co-op/gocron/issues/137)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - the default behavior of `LimitRunsTo` removes the job from the scheduler ([#​137](https://togithub.com/go-co-op/gocron/issues/137)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - nothing can be done with a stopped job in the scheduler so we opted to remove the job instead - `At()` now accepts either `string` or `time.Time` (parses out only h,m,s) ([#​137](https://togithub.com/go-co-op/gocron/issues/137)) [@​JohnRoesler](https://togithub.com/JohnRoesler) ##### Removed - the `RemoveAfterLastRun` func has been removed ([#​137](https://togithub.com/go-co-op/gocron/issues/137)) [@​JohnRoesler](https://togithub.com/JohnRoesler) ##### Chores - to go 1.16 ([#​135](https://togithub.com/go-co-op/gocron/issues/135)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - updates to the readme including a design diagram ([`513e278`](https://togithub.com/go-co-op/gocron/commit/513e278), [`740bcdb`](https://togithub.com/go-co-op/gocron/commit/740bcdb)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - added a code of conduct ([`88fbecc`](https://togithub.com/go-co-op/gocron/commit/88fbecc)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - updated the gitignore ([`a55ceb8`](https://togithub.com/go-co-op/gocron/commit/a55ceb8)) [@​JohnRoesler](https://togithub.com/JohnRoesler) ### [`v0.7.1`](https://togithub.com/go-co-op/gocron/releases/v0.7.1) [Compare Source](https://togithub.com/go-co-op/gocron/compare/v0.7.0...v0.7.1) ##### Fixed - `Clear()` now properly stops all jobs before removing them from the scheduler ([#​134](https://togithub.com/go-co-op/gocron/issues/134)) [@​JohnRoesler](https://togithub.com/JohnRoesler) ##### Chores - Updated the readme with details around different job modes and combinations of schedule options ([`2a8757a`](https://togithub.com/go-co-op/gocron/commit/2a8757a)) [@​JohnRoesler](https://togithub.com/JohnRoesler) ### [`v0.7.0`](https://togithub.com/go-co-op/gocron/releases/v0.7.0) [Compare Source](https://togithub.com/go-co-op/gocron/compare/v0.6.0...v0.7.0) ##### Added - singleflight mode, if the same job tries to run again while a previous run hasn't finished yet, it will either wait to run or skip the run ([#​123](https://togithub.com/go-co-op/gocron/issues/123)) thanks [@​farwydi](https://togithub.com/farwydi) - the ability to limit the number of concurrent jobs, useful for resource intensive jobs ([#​126](https://togithub.com/go-co-op/gocron/issues/126)) thanks [@​dustin-decker](https://togithub.com/dustin-decker) ##### Changed - we now send jobs to a job executor through channels instead of handling them directly in the scheduler, allowing us to get rid of many mutexes ([#​122](https://togithub.com/go-co-op/gocron/issues/122)) [@​JohnRoesler](https://togithub.com/JohnRoesler) ##### Fixed - a race condition issue on some getter methods ([#​124](https://togithub.com/go-co-op/gocron/issues/124)) thanks [@​amirhosseinvz94](https://togithub.com/amirhosseinvz94) ### [`v0.6.0`](https://togithub.com/go-co-op/gocron/releases/v0.6.0) [Compare Source](https://togithub.com/go-co-op/gocron/compare/v0.5.1...v0.6.0) ##### Added - allow starting Jobs at a date in the past ([#​113](https://togithub.com/go-co-op/gocron/issues/113)) [@​calvinmclean](https://togithub.com/calvinmclean) - add job limit and remove after last run to scheduler chain ([#​116](https://togithub.com/go-co-op/gocron/issues/116)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - `scheduler.Every()` now accepts int, time.Duration, and string to allow any desired duration between runs ([#​119](https://togithub.com/go-co-op/gocron/issues/119)) [@​JohnRoesler](https://togithub.com/JohnRoesler) ##### Changed - sets the default unit to seconds ([#​112](https://togithub.com/go-co-op/gocron/issues/112)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - catches a bad interval of 0 with an error ([#​112](https://togithub.com/go-co-op/gocron/issues/112)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - clarified several function names and accepted values ([#​121](https://togithub.com/go-co-op/gocron/issues/121)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - The job `Tag` func now accepts a variadic string parameter instead of a slice - The scheduler `SetTag` is now `Tag` and also accepts a variadic string parameter - The scheduler `RemoveJobByTag` is now `RemoveByTag` to be consistent with `Remove` and `RemoveByReference` - The scheduler `RunAllWithDelay` func now accepts a time.Duration instead of an int representing seconds - The scheduler `Scheduled` func is now `TaskPresent` - scheduled was confusing name because until the scheduler is started, it's not actually "scheduled to run". Now you can check whether the task is present in the scheduler. ##### Fixed - fixed the bug with jobs not being stopped upon removal ([`5027f53`](https://togithub.com/go-co-op/gocron/commit/5027f53)) thanks [@​huage1994](https://togithub.com/huage1994) - catches nil timer with stopTimer() func ([#​112](https://togithub.com/go-co-op/gocron/issues/112)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - fix a bug where the monthly calculation failed rounding to midnight ([#​104](https://togithub.com/go-co-op/gocron/issues/104)) [@​sdw2330976](https://togithub.com/sdw2330976) - fix bug with limit runs to not stopping jobs ([#​114](https://togithub.com/go-co-op/gocron/issues/114)) [@​JohnRoesler](https://togithub.com/JohnRoesler) ##### Removed - remove stopChan from Scheduler ([#​105](https://togithub.com/go-co-op/gocron/issues/105)) [@​arjunmahishi](https://togithub.com/arjunmahishi) ##### Chores - documentation clean up ([#​112](https://togithub.com/go-co-op/gocron/issues/112)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - add golangci to actions - and address lint issues ([#​117](https://togithub.com/go-co-op/gocron/issues/117)) ([#​118](https://togithub.com/go-co-op/gocron/issues/118)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - add examples for all funcs to godoc ([#​121](https://togithub.com/go-co-op/gocron/issues/121)) [@​JohnRoesler](https://togithub.com/JohnRoesler) ### [`v0.5.1`](https://togithub.com/go-co-op/gocron/releases/v0.5.1) [Compare Source](https://togithub.com/go-co-op/gocron/compare/v0.5.0...v0.5.1) ##### Fixed - fix bug with StartAt() in v0.5.0 ([#​103](https://togithub.com/go-co-op/gocron/issues/103)) [@​JohnRoesler](https://togithub.com/JohnRoesler) ### [`v0.5.0`](https://togithub.com/go-co-op/gocron/releases/v0.5.0) [Compare Source](https://togithub.com/go-co-op/gocron/compare/v0.4.0...v0.5.0) :exclamation: A bug was discovered and patched in v0.5.1 ##### Added - func to remove a particular job reference from the scheduler after the last execution of the job ([#​90](https://togithub.com/go-co-op/gocron/issues/90)) - thanks [@​dlaweb](https://togithub.com/dlaweb) ##### Changed - refactor scheduler to schedule jobs with time.AfterFunc() ([#​99](https://togithub.com/go-co-op/gocron/issues/99)) [@​Streppel](https://togithub.com/Streppel) ##### Fixed - ran go test -race and cleans up all the race conditions ([#​92](https://togithub.com/go-co-op/gocron/issues/92)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - add mutex to scheduler location ([#​93](https://togithub.com/go-co-op/gocron/issues/93)) [@​JohnRoesler](https://togithub.com/JohnRoesler) ##### Removed - removed the deprecated StartImmediately() func ([#​92](https://togithub.com/go-co-op/gocron/issues/92)) [@​JohnRoesler](https://togithub.com/JohnRoesler) ##### Chores - added a makefile to enable easy fmt checks, lint, vet, test -race ([#​92](https://togithub.com/go-co-op/gocron/issues/92)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - Add a contributing md ([#​94](https://togithub.com/go-co-op/gocron/issues/94)) [@​JohnRoesler](https://togithub.com/JohnRoesler) ### [`v0.4.0`](https://togithub.com/go-co-op/gocron/releases/v0.4.0) [Compare Source](https://togithub.com/go-co-op/gocron/compare/v0.3.3...v0.4.0) ##### Added - Expose the Job's lastRun, nextRun and runCount ([#​83](https://togithub.com/go-co-op/gocron/issues/83)) [@​arjunmahishi](https://togithub.com/arjunmahishi) ##### Changed - `scheduleNextRun` now uses duration ([#​79](https://togithub.com/go-co-op/gocron/issues/79)) [@​Streppel](https://togithub.com/Streppel) - Start jobs immediately by default - `StartImmediately()` has been deprecated ([#​82](https://togithub.com/go-co-op/gocron/issues/82)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - To achieve the prior behavior of starting after the interval, use `StartAt()` s := gocron.NewScheduler(time.UTC) _, _ = s.Every(1).Hour().StartAt(time.Now().Add(time.Hour() * 1)).Do(task) s.StartBlocking() ##### Fixed - Re-set the job's last run in scheduler run() ([#​81](https://togithub.com/go-co-op/gocron/issues/81)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - Fix runnableJobs where subsequent jobs are never checked ([#​87](https://togithub.com/go-co-op/gocron/issues/87)) [@​JohnRoesler](https://togithub.com/JohnRoesler) - Handle job creation errors ([#​89](https://togithub.com/go-co-op/gocron/issues/89)) [@​arjunmahishi](https://togithub.com/arjunmahishi) ##### Removed - Non-working distributed lock ([#​77](https://togithub.com/go-co-op/gocron/issues/77)) [@​Streppel](https://togithub.com/Streppel) ##### Chores - Add funding doc [`d12fdaf`](https://togithub.com/go-co-op/gocron/commit/d12fdaf) [`b7cd523`](https://togithub.com/go-co-op/gocron/commit/b7cd523) 😃 [@​JohnRoesler](https://togithub.com/JohnRoesler)

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by WhiteSource Renovate. View repository job log here.