cron icon indicating copy to clipboard operation
cron copied to clipboard

a cron library for go

Results 173 cron issues
Sort by recently updated
recently updated
newest added

Suppose you have a job scheduled every minute. The current time is 15:00:00 and for reasons outside our control it is set to 17:00:00, the job runs as expected and...

https://github.com/robfig/cron/blob/bc59245fe10efaed9d51b56900192527ed733435/parser.go#L313 There is not enough validation for step So when we use cron expression like "0/9999 * * * * ?", it still works, but it seems like out of...

This PR uses https://github.com/benbjohnson/clock to mock the time. Adding support for using mock clock with cron will be helpful to write test cases and verify cron behaviour. Similar to this...

I would like to be able to remove a job from within the job itself. A workaround is welcome too :) If you have an idea on how to implement,...

At present the library don't have the support for dow. Hash (#) '#' is allowed for the day-of-week field, and must be followed by a number between one and five....

enhancement

When passing the following for AddFunc: `_, err = reportingCron.AddFunc("0 7 * * *", func() { } ` An entry is registered in cron, when printing out said entry you...

Expr: `0 0 */2 * 3` in https://crontab.guru/ expected: at 2024-08-21 00:00:00 then at 2024-08-28 00:00:00 then at 2024-09-04 00:00:00 then at 2024-09-11 00:00:00 then at 2024-09-18 00:00:00 for this...

Add some `Jitter` to the Entry's scheduled time. The actual jitter used will be randomly chosen within the range [0, Jitter]. The jitter will always be converted to a positive...

if they set 32 in day of month it's mean they set last day of month ,so I figure out last day of month dynamically use temporary value to compare