Commit Graph

18 Commits

Author SHA1 Message Date
John Roesler 4278ff74b4
tests: add more daylight savings time tests (#891) 2025-10-27 14:00:58 -05:00
Yash Chauhan 3ee53e03d9
feat: Add option to calculate intervals from job completion time for interval-based scheduling (fixes #565) (#884) 2025-10-21 22:09:46 -05:00
Tom Morelly cc66c780d8
feat(eventListener): add BeforeJobRunsSkipIfBeforeFuncErrors() (#813) 2025-01-08 19:21:13 -06:00
John Roesler bf751076f3
creating a new slice in several job options because appending modifies original (#809)
* creating a new slice in several job options because appending modifies original

* add tests
2025-01-03 10:18:18 -06:00
John Roesler c180381e94
parse time.Time from AtTime (#806) 2024-12-17 11:38:16 -06:00
John Roesler 256265f9a2
internal refactoring of JobOption constructor, clock moved to exec (#761) 2024-07-18 11:32:56 -05:00
Higan 970c5399bc
wrap ErrPanicRecovered with recoverData (#749) 2024-07-03 10:23:45 -05:00
Trung Duong 399ac2807b
Add `AfterJobRunsWithPanic` (#733) 2024-06-20 07:01:36 -05:00
Manuel Doncel Martos 894970124c
after lock error listener (#734)
* after job listener

* fixing lint issues

---------

Co-authored-by: lv90no <manuel.doncel.martos@ing.com>
2024-06-19 06:33:50 -05:00
John Roesler 525b361a3f
adding Job.NextRuns to provide n next run times (#729)
* adding Job.NextRuns to provide n next run times

* skip test in ci

* skip test in ci
2024-05-06 14:07:44 -05:00
John Roesler 3b653b99e4
fix nextRun with singleton mode reporting incorrect time (#705)
* fix nextRun with singleton mode reporting incorrect time

* only remove past if >1, sort next scheduled

* update test, remove no longer needed lastScheduledRun
2024-04-05 20:56:22 -05:00
John Roesler 5a894989c7
fix monthly jobs when counting days from the end (#662) 2024-01-21 16:04:16 -06:00
John Roesler 6e15f16d77
add new features, OneTimeJob and Job.RunNow() (#646) 2023-12-18 21:13:37 -06:00
John Roesler 9803aad10f
fix weekly and monthly to handle midnight (#643) 2023-12-17 08:03:44 -06:00
John Roesler b0fdf551b9
daily job next logic failed to consider 1 midnight attime (#635) 2023-12-13 15:54:12 -06:00
John Roesler aa4400d224
Update docs, tests, and release prep (#629) 2023-12-11 10:39:59 -06:00
John Roesler 8c628fae2d
add job name to event listners (#621)
* add job name to event listners

* missed the examples

* missed executor
2023-11-14 11:39:27 -06:00
John Roesler ad26a71e0e
initial clean v2 commit history 2023-11-08 11:11:42 -06:00