Commit Graph

156 Commits

Author SHA1 Message Date
dependabot[bot] 361bc6a4c7
Bump github/codeql-action from 3 to 4 (#883) 2025-10-14 14:31:37 +00:00
John Roesler 6a30d6d8b9
feat: add WithStartDateTimePast WithStartAt option (#882) 2025-10-09 21:45:13 -05:00
John Roesler 536410f98a
fix: multiple calls to shutdown should be no-op (#880)
* fix: multiple calls to shutdown should be no-op

* timing was off - need to cancel context before returning early
2025-10-09 11:19:35 -05:00
John Roesler 7acb981965
chore: go 1.23 is end of life - now go 1.24 (#879)
* chore: go 1.23 is end of life - now go 1.24

* Update go.mod
2025-10-08 16:06:26 -05:00
John Roesler 70468cccd8
fix: handle negative time.durations with error (#878) 2025-10-08 15:50:07 -05:00
Yash Chauhan e7510e13a3
Update README.md (#875)
* Update README.md with gocron-ui note

* Update README.md
2025-10-08 11:24:51 -05:00
apocelipes 028b401157
Reusing the results of reflections to improve performance (#873) 2025-09-28 22:35:39 -05:00
dependabot[bot] 3966ea971d
Bump actions/setup-go from 5 to 6 (#871)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5 to 6.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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-09-23 22:41:16 -05:00
sarff d56a063ca0
Added a return to the selectRunJobRequest function (#872) 2025-09-17 10:06:55 -05:00
apocelipes 6e6485bd57
Add go1.25 tests (#869)
* Add go1.25 tests

* remove 1.23 test

---------

Co-authored-by: John Roesler <johnrroesler@gmail.com>
2025-09-02 09:32:29 -05:00
apocelipes b383ca99c5
Use `errors.New` for non-formatted strings (#870) 2025-09-02 08:48:40 -05:00
John Roesler cc3a1dbf46
Bump testify (#868)
* Bump github.com/stretchr/testify from 1.10.0 to 1.11.0

* fix tests
2025-08-27 15:10:53 -05:00
Copilot 9e8c79dc9b
Fix memory consumption issue by changing jobOutRequest channels to use pointers and reducing buffer size (#864)
* Initial plan

* Fix memory consumption issue by changing jobOutRequest channels to use pointers

Co-authored-by: JohnRoesler <19351306+JohnRoesler@users.noreply.github.com>

* Change jobOutRequest channel buffer size from 1000 to 100

Co-authored-by: JohnRoesler <19351306+JohnRoesler@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: JohnRoesler <19351306+JohnRoesler@users.noreply.github.com>
Co-authored-by: John Roesler <johnrroesler@gmail.com>
2025-08-27 11:03:34 -05:00
Copilot 8187978b01
Add comprehensive GitHub Copilot instructions for gocron development (#866)
* Initial plan

* Initial exploration: identify build, test, and validation patterns

Co-authored-by: JohnRoesler <19351306+JohnRoesler@users.noreply.github.com>

* Add comprehensive GitHub Copilot instructions with validated commands

Co-authored-by: JohnRoesler <19351306+JohnRoesler@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: JohnRoesler <19351306+JohnRoesler@users.noreply.github.com>
2025-08-27 10:56:47 -05:00
dependabot[bot] 5bf6802fe1
Bump golang.org/x/crypto from 0.40.0 to 0.41.0 (#859) 2025-08-14 02:26:53 +00:00
dependabot[bot] 78468fab73
Bump actions/checkout from 4 to 5 (#860) 2025-08-14 02:25:37 +00:00
John Roesler fcfcb87056
fix: cancel job contexts in create/update errors (#858) 2025-07-21 12:28:36 -05:00
John Roesler 4fb3b98763
chore: document the limitations with the locker design (#848) 2025-05-16 14:15:33 -05:00
dependabot[bot] c9b34bdce1
Bump golangci/golangci-lint-action from 7.0.0 to 8.0.0 (#847)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-05 14:27:06 -05:00
John Roesler 17f65124cc
remove golangci v1 config backup 2025-04-30 14:15:15 -05:00
dependabot[bot] eb4dfe6700
go 1.23 & golangci-lint v2 (#843)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: John Roesler <johnrroesler@gmail.com>
2025-04-29 10:43:10 -05:00
Oleksandr Redko 914faca3a0
docs: adapt README to the dark theme (#844) 2025-04-03 12:27:12 -05:00
apocelipes 63f3701d57
Fix #835 and #837 (#836) 2025-02-26 09:28:43 -06:00
John Roesler e1b7d52ebc
ExampleWithCronImplementation 2025-02-25 07:47:40 -06:00
John Roesler 69b4347c4c
clean up 2025-02-24 21:30:14 -06:00
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