Commit Graph

21 Commits

Author SHA1 Message Date
iyashjayesh 345ad8ad3a feat() updated with remaning metrics & events (JobRegistered/JobUnregistered, JobStarted/JobRunning/JobFailed/JobCompleted) 2025-11-11 19:16:34 +05:30
Yash Chauhan ddfeae61ed
Update errors.go
Co-authored-by: John Roesler <johnrroesler@gmail.com>
2025-10-28 11:01:41 +05:30
iyashjayesh 83f5f60b67 git commit -m "feat: add SchedulerStarted and SchedulerStopped monitoring" 2025-10-26 01:10:05 +05:30
John Roesler 6a30d6d8b9
feat: add WithStartDateTimePast WithStartAt option (#882) 2025-10-09 21:45:13 -05:00
John Roesler 70468cccd8
fix: handle negative time.durations with error (#878) 2025-10-08 15:50:07 -05:00
apocelipes b383ca99c5
Use `errors.New` for non-formatted strings (#870) 2025-09-02 08:48:40 -05:00
John Roesler ce204f9d74
check context not nil, and update test and docs (#820) 2025-01-23 13:30:12 -06:00
John Roesler 46bcd8e030
weekly and monthly jobs should not allow zero interval (#792) 2024-10-31 11:42:35 -05:00
John Roesler 4baf341092
dailyjob should not allow interval zero (#791) 2024-10-31 10:52:35 -05:00
John Roesler 3ccd68d676
handle crontab and return error with invalid day in a month (#766) 2024-08-09 10:11:54 -05:00
Higan 3b2dcd869b
issue-654: allow setting a stopTime for job. (#760) 2024-07-19 13:10:28 -05:00
Derrick Hammer 63a6458a5b
feat: add WithIdentifier (#753) (#754) 2024-07-10 09:51:37 -05:00
Trung Duong 399ac2807b
Add `AfterJobRunsWithPanic` (#733) 2024-06-20 07:01:36 -05:00
Giridharan Ramasamy 3faf525f98
Added Distributed Locker to JobOptions (#711) 2024-04-22 13:52:27 -05:00
墨语 5b1cf9c619
return an error if duration is zero (#701) 2024-03-25 15:58:47 -05:00
John Roesler 5c69001e27
Add job monitor interface to allow for collecting job metrics (#659)
* Add metrics each run of job

* Fix lint

* Fix test lint

* Fix backwards job status

* Add tags

* Comment example

* Rename it

* Fix some names

* Fix readme

* update readme, examples, naming

* fix unrelated test that was leaking scheduler

* remove overzealous leak detection

* rename interface methods

---------

Co-authored-by: gorodet-sky <gorodetsky.dev@gmail.com>
2024-01-17 15:39:11 -06:00
John Roesler 6e15f16d77
add new features, OneTimeJob and Job.RunNow() (#646) 2023-12-18 21:13:37 -06:00
John Roesler 80a4f43686
check function param length and type (#638) 2023-12-14 13:52:32 -06:00
John Roesler 7fea987137
add distributed locker for v2 (#614)
* add distributed locker for v2

* fix logger test

* enhance logger test
2023-11-14 09:56:05 -06:00
John Roesler 4a57125579
test all remaining With*, and test logger (#609) 2023-11-09 15:04:18 -06:00
John Roesler ad26a71e0e
initial clean v2 commit history 2023-11-08 11:11:42 -06:00