Commit Graph

22 Commits

Author SHA1 Message Date
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
Scot Bontrager 917cca7f5c
don't trash the incoming slice, match what was done in NewAtTime (#724) 2024-05-01 22:30:07 -05:00
Giridharan Ramasamy 3faf525f98
Added Distributed Locker to JobOptions (#711) 2024-04-22 13:52:27 -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 9ae7545c27
add another out channel so we can properly report lastRun (#700)
* add another out channel so we can properly report lastRun

* don't block on channel send

* add tests
2024-03-26 09:55:21 -05:00
墨语 5b1cf9c619
return an error if duration is zero (#701) 2024-03-25 15:58:47 -05:00
John Roesler 27f2cbaa41
fix cases where default on send out is resulting in job not going out (#686) 2024-03-05 10:55:42 -06:00
John Roesler 0d01bb42c9
correct AfterJobRuns doc (#670) 2024-02-02 14:44:39 -06:00
John Roesler 5a894989c7
fix monthly jobs when counting days from the end (#662) 2024-01-21 16:04:16 -06:00
John Roesler a51820e30f
fixup Job and Scheduler interface docs 2023-12-20 15:16: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 5814fbcb6f
allow max concurrent runs and singleton mode together (#625) 2023-11-28 06:48:22 -06:00
John Roesler 63225ac1a9
export function comments 2023-11-22 06:43:50 -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 ad5613c55f
update docs and add mocks pkg (#610) 2023-11-09 16:00:18 -06:00
John Roesler 6f9a8200f4
support go 1.20+ (#608) 2023-11-09 09:49:21 -06:00
John Roesler ad26a71e0e
initial clean v2 commit history 2023-11-08 11:11:42 -06:00