File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package cron
33import (
44 "fmt"
55
6- "github.com/robfig/ cron/v3 "
6+ cron "github.com/netresearch/go- cron"
77
88 "github.com/cloudfoundry-community/ocf-scheduler/core"
99)
@@ -16,7 +16,7 @@ type CronService struct {
1616
1717func NewCronService (log core.LogService ) * CronService {
1818 return & CronService {
19- Cron : cron .New (),
19+ Cron : cron .New (cron . WithParser ( cron . FullParser ()) ),
2020 log : log ,
2121 mapping : make (map [string ]cron.EntryID ),
2222 }
@@ -84,7 +84,7 @@ func (service *CronService) Count() int {
8484}
8585
8686func (service * CronService ) Validate (expression string ) error {
87- _ , err := cron .ParseStandard (expression )
87+ _ , err := cron .FullParser (). Parse (expression )
8888
8989 return err
9090}
Original file line number Diff line number Diff line change 11module github.com/cloudfoundry-community/ocf-scheduler
22
3- go 1.22
3+ go 1.25
44
55require (
66 github.com/cloudfoundry-community/go-cfclient v0.0.0-20220218061834-a7f54630885c
@@ -11,7 +11,7 @@ require (
1111 github.com/google/uuid v1.3.0
1212 github.com/labstack/echo/v4 v4.9.0
1313 github.com/lib/pq v1.10.4
14- github.com/robfig/ cron/v3 v3.0.1
14+ github.com/netresearch/go- cron v0.8.0
1515 github.com/rubenv/sql-migrate v1.1.1
1616 github.com/sirupsen/logrus v1.8.1
1717 github.com/spf13/cobra v1.2.1
Original file line number Diff line number Diff line change @@ -279,6 +279,8 @@ github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx
279279github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 /go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q =
280280github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 /go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0 =
281281github.com/modern-go/reflect2 v1.0.1 /go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0 =
282+ github.com/netresearch/go-cron v0.8.0 h1:2kgxsBMAFONMWQvhFbFIlc1xO6upNs/jJ7D7OAFzKmw =
283+ github.com/netresearch/go-cron v0.8.0 /go.mod h1:oRPUA7fHC/ul86n+d3SdUD54cEuHIuCLiFJCua5a5/E =
282284github.com/olekukonko/tablewriter v0.0.5 /go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY =
283285github.com/onsi/ginkgo v1.6.0 /go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE =
284286github.com/onsi/ginkgo v1.8.0 h1:VkHVNpR4iVnU8XQR6DBm8BqYjN7CRzw+xKUbVVbbW9w =
@@ -301,8 +303,6 @@ github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndr
301303github.com/poy/onpar v0.0.0-20190519213022-ee068f8ea4d1 h1:oL4IBbcqwhhNWh31bjOX8C/OCy0zs9906d/VUru+bqg =
302304github.com/poy/onpar v0.0.0-20190519213022-ee068f8ea4d1 /go.mod h1:nSbFQvMj97ZyhFRSJYtut+msi4sOY6zJDGCdSc+/rZU =
303305github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4 /go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA =
304- github.com/robfig/cron/v3 v3.0.1 h1:WdRxkvbJztn8LMz/QEvLN5sBU+xKpSqwwUO1Pjr4qDs =
305- github.com/robfig/cron/v3 v3.0.1 /go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro =
306306github.com/rogpeppe/fastuuid v1.2.0 /go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ =
307307github.com/rogpeppe/go-internal v1.3.0 /go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4 =
308308github.com/rogpeppe/go-internal v1.8.0 /go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE =
You can’t perform that action at this time.
0 commit comments