Copilot
5b307f56dd
docs: clarify NextRun/NextRuns require scheduler to be started ( #910 )
...
* Initial plan
* docs: clarify NextRun and NextRuns return empty values until scheduler is started
Co-authored-by: JohnRoesler <19351306+JohnRoesler@users.noreply.github.com>
* docs: remove unhelpful inline comments from NextRun/NextRuns examples
Co-authored-by: JohnRoesler <19351306+JohnRoesler@users.noreply.github.com>
Agent-Logs-Url: https://github.com/go-co-op/gocron/sessions/9686e808-ae5e-4bc8-ad00-f78a1a7b079d
* docs: restore inline comments for NextRun/NextRuns examples
Co-authored-by: JohnRoesler <19351306+JohnRoesler@users.noreply.github.com>
Agent-Logs-Url: https://github.com/go-co-op/gocron/sessions/df5afb1e-5c66-4615-9967-a2efc2419d87
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: JohnRoesler <19351306+JohnRoesler@users.noreply.github.com>
2026-03-20 11:58:16 -05:00
John Roesler
102b2b2c8e
Change GitHub Sponsors username in FUNDING.yml
...
Updated GitHub Sponsors username to 'go-co-op'.
2026-03-10 10:05:56 -05:00
Copilot
c4a0fed4ed
Fix broken monitors link in README ( #908 )
...
* Initial plan
* docs: fix broken monitors link and encourage contributions
Co-authored-by: JohnRoesler <19351306+JohnRoesler@users.noreply.github.com>
* docs: fix formatting to match existing style
Co-authored-by: JohnRoesler <19351306+JohnRoesler@users.noreply.github.com>
* docs: add implementations sections for Monitor, MonitorStatus, and SchedulerMonitor
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>
2026-01-28 10:27:20 -06:00
Barkhayot Juraev
93ffeadbf6
[fix] race condition in `NextRun()` when multiple jobs complete simultaneously ( #907 )
...
* fix: select execute job on complete
* fix: update next job scheduling
* fix: handle test case
* feat: test next run with multiple jobs
* feat: test next run with concurrent completions
* fix: remove iteration param based on feedbacks
---------
Co-authored-by: Barkhayot Juraev <barkhayotjuraev@Barkhayots-MacBook-Pro.local>
2026-01-28 09:43:58 -06:00
dependabot[bot]
51570c3648
build(deps): bump golangci/golangci-lint-action from 9.1.0 to 9.2.0 ( #903 )
...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 9.1.0 to 9.2.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v9.1.0...v9.2.0 )
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-version: 9.2.0
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>
2025-12-10 13:58:28 -06:00
John Roesler
7a1855ef7a
feat: expose default cron implementation ( #906 )
2025-12-10 13:57:36 -06:00
Yash Chauhan
f4c6d141a9
feat: add scheduler lifecycle monitoring <> #785 ( #889 )
...
* git commit -m "feat: add SchedulerStarted and SchedulerStopped monitoring"
* fix lint issue
* Update errors.go
Co-authored-by: John Roesler <johnrroesler@gmail.com>
* feat() updated with remaning metrics & events (JobRegistered/JobUnregistered, JobStarted/JobRunning/JobFailed/JobCompleted)
* feat: enhance scheduler and job observability by adding new monitor events for lifecycle, performance, and concurrency limits.
* docs: expand metrics section to include scheduler lifecycle events and `SchedulerMonitor` details with Prometheus example
* refactor: conditionally send scheduler notifications only when a scheduler monitor is configured.
---------
Co-authored-by: John Roesler <johnrroesler@gmail.com>
2025-12-02 10:25:51 -06:00
John Roesler
9cc3be7cff
fix: calling start multiple times should no-op ( #901 )
...
* fix: calling start multiple times should no-op
* give test more time after start
* add a mutex
2025-11-26 13:38:55 -06:00
dependabot[bot]
974802ab3b
build(deps): bump actions/checkout from 5 to 6 ( #898 )
2025-11-25 10:02:57 -06:00
dependabot[bot]
40e703737f
build(deps): bump golangci/golangci-lint-action from 9.0.0 to 9.1.0 ( #899 )
2025-11-25 10:02:44 -06:00
John Roesler
5b2fe32639
fix: WithStartDateTimePast now correctly calculates from past time ( #897 )
2025-11-24 10:08:17 -06:00
dependabot[bot]
9b37b3fa08
build(deps): bump golangci/golangci-lint-action from 8.0.0 to 9.0.0 ( #894 )
...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 8.0.0 to 9.0.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v8.0.0...v9.0.0 )
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-version: 9.0.0
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>
2025-11-10 13:22:11 -06:00
OsipovMax
46660bbfb3
fix: limit validation for WithLimitedRuns ( #893 )
...
Co-authored-by: Maksim Osipov <osipov.maksim39@rwb.ru>
Co-authored-by: John Roesler <johnrroesler@gmail.com>
2025-11-05 13:19:14 -06:00
John Roesler
291adb8eee
doc: add v1 to v2 migration guide ( #890 )
2025-11-05 12:36:20 -06:00
John Roesler
4278ff74b4
tests: add more daylight savings time tests ( #891 )
2025-10-27 14:00:58 -05:00
Yash Chauhan
11cf7cf8e2
add blog post section ( #886 )
2025-10-22 14:38:24 -05:00
Yash Chauhan
3ee53e03d9
feat: Add option to calculate intervals from job completion time for interval-based scheduling ( fixes #565 ) ( #884 )
2025-10-21 22:09:46 -05:00
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