Commit Graph

144 Commits

Author SHA1 Message Date
Higan 3b2dcd869b
issue-654: allow setting a stopTime for job. (#760) 2024-07-19 13:10:28 -05:00
John Roesler 256265f9a2
internal refactoring of JobOption constructor, clock moved to exec (#761) 2024-07-18 11:32:56 -05:00
Andreas Deininger d3644490bc
Fix typo (#759) 2024-07-17 19:03:10 -05:00
apocelipes f37e274abb
issue-756: fix interface variadic parameters verifying (#757) 2024-07-17 06:56:17 -05:00
Higan 2c08083603
issue-677: support task creation with variadic args (#755) 2024-07-11 21:24:08 -05:00
Derrick Hammer 63a6458a5b
feat: add WithIdentifier (#753) (#754) 2024-07-10 09:51:37 -05:00
Samuel Attwood 9747c90947
issue-751: fix bug in selectExecJobsOutForRescheduling (#752) 2024-07-09 09:39:51 -05:00
Higan 970c5399bc
wrap ErrPanicRecovered with recoverData (#749) 2024-07-03 10:23:45 -05:00
John Roesler 9d27ea8673
minor refactor 2024-07-01 09:28:04 -05:00
John Roesler baf731c6f9
fix jobs not starting on scheduler restart when using WithLimitConcurrentJobs (#745) 2024-06-27 14:53:35 -05:00
Rodrigo Broggi 212db8e476
issue-740: ascending time function (#744)
* issue-740: ascending time function

* issue-740: update documentation

* issue-740: un-export ascending function

* issue-740: sentence correction
2024-06-23 13:14:35 -05:00
Rodrigo Broggi 64d6e48dae
issue-740: expand oneTimeJob to support multiple times (#741) 2024-06-21 16:51:42 -05:00
Rodrigo Broggi 7c391d4326
issue-742: bug in `NextRun` (#743)
* issue-742: bug in `NextRun`

* issue-742: bug in `NextRun` correction
2024-06-21 09:17:34 -05:00
Rodrigo Broggi fd18ca7b52
issue-736: moving validation of one-time to (#737)
Co-authored-by: John Roesler <johnrroesler@gmail.com>
2024-06-20 14:21:05 -05:00
Rodrigo Broggi 9e83a13c14
issue-738: make withSeconds optional in cron-expression (#739) 2024-06-20 13:56:48 -05:00
Trung Duong 399ac2807b
Add `AfterJobRunsWithPanic` (#733) 2024-06-20 07:01:36 -05:00
John Roesler 5f94f39fb2
Update go_test.yml 2024-06-19 08:45:21 -05:00
John Roesler 98f763e679
remove circleci config (#735)
* remove circleci config

* Trigger Build
2024-06-19 08:44:11 -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
dependabot[bot] b12ca98e93
Bump golangci/golangci-lint-action from 5.3.0 to 6.0.1 (#730) 2024-05-13 20:16:59 +00:00
dependabot[bot] 612f3e46ea
Bump golangci/golangci-lint-action from 4.0.0 to 5.3.0 (#728) 2024-05-06 19:33:38 +00: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 d808cd93a2
add note about limit mode precedence sched vs. job 2024-05-06 10:26:56 -05:00
John Roesler 72220eaff0
disable circle ci 2024-05-04 18:35:55 -05:00
John Roesler ec3478ddd2
re-enable actions 2024-05-04 18:32:52 -05:00
John Roesler 32c0374320
fix-up flakey test 2024-05-04 18:32:34 -05:00
John Roesler a2d889638f
comment out go_test.yml 2024-05-04 10:17:19 -05:00
John Roesler ce96452c3e
Circleci project setup (#727)
* skip test goroutine leak detection in github actions

* CircleCI Commit

* skip leak detection in circle ci as well
2024-05-02 14:50:11 -05:00
John Roesler e46cdc9d11
fix memory leak with singleton mode where job is sending duplicate reschedule requests (#723)
* fix memory leak with singleton mode where job is sending duplicate reschedule requests

* add a comment

* fix memory leak for limitmode as well

* tests are happy locally - some timing issues in actions
2024-05-02 11:35:57 -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 5f14dac979
Added JobsWaitingInQueue in Scheduler (#721)
* Added JobsWaitingInQueue in Scheduler

* Fixed tests
2024-04-30 14:32:20 -05:00
John Roesler dbec7a9d47
fix mocks import path (#720) 2024-04-30 09:58:43 -05:00
Giridharan Ramasamy cde2513062
Monitor: IncrementJob in case of skipped job run (#715)
Co-authored-by: John Roesler <johnrroesler@gmail.com>
2024-04-29 13:29:11 -05:00
Evgeny Markov a59b6a928a
Add Go 1.22 to test matrix (#714) 2024-04-29 13:25:38 -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 f021cc4721
Update SECURITY.md 2024-03-26 16:31:35 -05:00
John Roesler dcd4edae17
fix case where OneTimeJob with concurrent limit and limited runs fails to run (#703) 2024-03-26 16:29:25 -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 41dd412a49
fix case where job removed causes panic when rescheduling (#698) 2024-03-23 13:57:09 -05:00
Drew Gonzales b0bd435279
Allow more time for requestJobCtx (#699)
* allow more time for jobout request

* gofmt
2024-03-23 13:54:40 -05:00
John Roesler ebec5e9f91
elector & locker were failing to send out when not leader (#688)
* elector & locker were failing to send out when not leader

* update test to confirm non-active elector/locker are checked

* clean up data race

* try to make test more reliable
2024-03-12 08:37:11 -05:00
dependabot[bot] c2f95759d2
Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 (#684) 2024-03-06 16:04:17 +00: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
dependabot[bot] 387cbe4fc2
Bump golangci/golangci-lint-action from 3.7.0 to 4.0.0 (#675) 2024-02-12 20:02:15 +00:00
John Roesler 51affbbc1e
remove codecov (#672)
* Delete codecov.yml

* remove code cov
2024-02-05 14:09:46 -06:00
John Roesler 0d01bb42c9
correct AfterJobRuns doc (#670) 2024-02-02 14:44:39 -06:00
John Roesler b1ffc665fb
fix RunNow() when calling from a job returned by Jobs() (#668) 2024-02-02 09:46:08 -06:00
John Roesler 567cb9695c
fix unsafe map usage in singletonMode (#665)
* fix singletonMode unsafe map

* update lint issues

---------

Co-authored-by: a3sroot <a3sroot@gmail.com>
2024-01-30 15:50:10 -06:00