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
Tom Morelly
edb147514f
feat(monitor): introduce MonitorWithStatus ( #780 )
...
Co-authored-by: John Roesler <johnrroesler@gmail.com>
2024-12-11 22:23:57 -06:00
John Roesler
560a9dc9e4
stop timeout timers when no longer needed ( #803 )
2024-12-11 10:43:27 -06:00
John Roesler
d856be5a41
Update README.md
2024-12-06 14:06:44 -06:00
dependabot[bot]
c7c0a17f05
Bump github.com/stretchr/testify from 1.9.0 to 1.10.0 ( #801 )
2024-11-25 13:16:24 -06:00
John Roesler
dec269f8a7
fix overly greedy panic handler ( #800 )
2024-11-20 12:17:01 -06:00
dependabot[bot]
31de1e8108
Bump golangci/golangci-lint-action from 6.1.0 to 6.1.1 ( #781 )
...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 6.1.0 to 6.1.1.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v6.1.0...v6.1.1 )
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: John Roesler <johnrroesler@gmail.com>
2024-10-31 16:04:28 -05:00
John Roesler
a47779d859
update mocks with latest job/scheduler changes ( #794 )
2024-10-31 14:56:30 -05: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
Rodrigo Broggi
838bd518a0
Issue 778 ( #779 )
2024-09-19 08:18:50 -05:00
Barkhayot
40b8570e23
fix: cleanup timers ( #776 )
...
* fix: cleanup timers
* chore: bring comments back
2024-09-16 09:57:39 -05:00
dependabot[bot]
c84d8f70c4
Bump golangci/golangci-lint-action from 6.0.1 to 6.1.0 ( #764 )
...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 6.0.1 to 6.1.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v6.0.1...v6.1.0 )
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-09 10:12:06 -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
68dba115b2
add Singleton job rescheduled metric ( #763 )
2024-07-24 10:24:54 -05:00
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