cron
cron copied to clipboard
a cron library for go
Hi, As far as I can tell from the code, the Recover JobWrapper is not added by default despite the documentation saying it is. Commit d279950 would suggest that not...
Hi, do you have any plan to support non-standard case `@reboot`, here I mean trigger a call back when invoke cron.Start() method to run the cron goroutine. This may help...
https://github.com/robfig/cron/blob/ccba498c397bb90a9c84945bbb0f7af2d72b6309/cron.go#L193 ```golang func (c *Cron) Entry(id EntryID) Entry { for _, entry := range c.Entries() { if id == entry.ID { return entry } } return Entry{} } ``` The...
Cron package currently sets scheduler and then initialize cron.Run() based on the current time NOW. Is there possible, we can set NOW from cron.Cron.Run(now time.Time) method. Then use an old...
Just discuss if we need to add this support in cron lib.
## Optimization determine the nexe entry, from sort.Sort() to byTime.Min(), > sort.Sort: `one call to data.Len and O(n*log(n)) calls to data.Less and data.Swap`, > byTime.Min: `O(n) calls to data.Less and...
I had a need to improve the error handling around the `Parse` function. Specifically, if `Itoa` failed it yield a nasty error. I've only overhauled the cases that I need,...
`time.Duration.Truncate` and `time.Time.Truncate` were introduced in Go 1.9 and 1.1, and thus I guess they are okay.
if change system time, cron do not work again!!!
At the moment adding new entries is only possible by using one of the functions: ``` func (c *Cron) AddFunc(spec string, cmd func()) (EntryID, error) func (c *Cron) AddJob(spec string,...