Om Limdiwala
36cd85fc61
feat:custom-cron interface for own custom cron implimentation ( #834 )
...
* feat:custom-cron interface for own custom cron implimentation
* feat: tranfer the custom cron implimentation in the job options
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
---------
Co-authored-by: John Roesler <johnrroesler@gmail.com>
2025-02-24 21:26:16 -06:00
apocelipes
1fe8c5cca3
chore: add go1.24 to ci ( #833 )
2025-02-19 07:53:42 -06:00
Manuel Doncel Martos
2769f0940f
removes nextRuns in the past when job skipped by locker ( #829 )
...
Co-authored-by: manuelarte <manuel.doncel.martos@gmail.com>
2025-02-17 15:43:46 -06:00
John Roesler
08b53d788a
re-enable goleak detection in ci ( #832 )
...
* re-enable goleak detection in ci
* fix version string
* re-add go 1.23
2025-02-17 15:18:43 -06:00
dependabot[bot]
129f89c569
Bump golangci/golangci-lint-action from 6.3.2 to 6.5.0 ( #831 )
2025-02-17 13:32:19 -06:00
Oleksandr Redko
34fc56e077
fix err assertion in TestScheduler_RemoveJob ( #830 )
2025-02-14 09:12:39 -06:00
dependabot[bot]
8998063eda
Bump golangci/golangci-lint-action from 6.2.0 to 6.3.2 ( #827 )
2025-02-10 19:11:53 +00:00
Guang Jiong Lou
a757eff276
fix scheduler restart ( #825 )
2025-02-07 10:28:32 -06:00
John Roesler
8c70fdc387
Update README.md supporters
2025-01-31 10:25:26 -06:00
apocelipes
0c4a1a3292
replace "golang.org/x/exp" with standard libraries ( #823 )
2025-01-31 09:17:45 -06:00
John Roesler
d736ca28f5
go to 1.21, upgrade deps ( #822 )
...
* go to 1.21, upgrade deps
* test without 1.23
2025-01-29 10:37:12 -06:00
John Roesler
5b49603168
working to handle edge cases where a job can be run twice, unexpectedly ( #810 )
2025-01-28 21:22:56 -06:00
dependabot[bot]
cf2f500908
Bump golangci/golangci-lint-action from 6.1.1 to 6.2.0 ( #817 )
...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 6.1.1 to 6.2.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v6.1.1...v6.2.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>
Co-authored-by: John Roesler <johnrroesler@gmail.com>
2025-01-23 14:23:16 -06:00
John Roesler
6133a24ae2
clarify context docs
2025-01-23 14:21:18 -06:00
John Roesler
96fe017828
clarify context docs
2025-01-23 14:09:03 -06:00
John Roesler
8df2bbf7cd
clarify context docs
2025-01-23 14:07:29 -06:00
John Roesler
ce204f9d74
check context not nil, and update test and docs ( #820 )
2025-01-23 13:30:12 -06:00
Guang Jiong Lou
50966c7365
cancel running jobs if possible when run Scheduler.StopJobs() ( #819 )
...
* cancel running job when run Scheduler.StopJobs()
Signed-off-by: lou <alex1988@outlook.com>
* trivial
Signed-off-by: lou <alex1988@outlook.com>
* Update scheduler_test.go
---------
Signed-off-by: lou <alex1988@outlook.com>
Co-authored-by: John Roesler <johnrroesler@gmail.com>
2025-01-23 12:27:28 -06:00
Tom Morelly
cc66c780d8
feat(eventListener): add BeforeJobRunsSkipIfBeforeFuncErrors() ( #813 )
2025-01-08 19:21:13 -06:00
John Roesler
abfd9e5dcc
update examples
2025-01-03 15:47:57 -06:00
Hossein Shahsahebi
f5a5a2d0bc
feat: allow disabling global distributed locker per job ( #811 )
...
* chore: fix distributed locker tests
* feat: allow disabling global dist locker per job
2025-01-03 15:12:34 -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
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