robfig / cron

a cron library for go
MIT License
13.15k stars 1.63k forks source link

Added context #516

Open lpongetti opened 9 months ago

lpongetti commented 9 months ago

Added context in Run and Start

318

flc1125 commented 3 weeks ago

I made improvements based on this repository and released version 4.0.0, which supports context.Context.

Welcome to use. https://github.com/flc1125/go-cron


Currently, link tracing and distributed anti-duplicate execution are implemented using its context.Context.

These two functions are currently in my other warehouse. https://github.com/go-kratos-ecosystem/components/tree/2.x/crontab/middleware

When it is used and maintained perfectly, I will move them into the flc1125/go-cron warehouse.