Breaking change: Add ScanSchedule, allows interval and cron based configurations.

See https://pkg.go.dev/github.com/robfig/cron#hdr-CRON_Expression_Format for expression syntax.

`ScanInterval` will still work for the time being. The only situation it does not work is when you want to disable periodic scanning by setting `ScanInterval=0`. If you want to disable it, please set `ScanSchedule=""`

Closes #1085
This commit is contained in:
Deluan
2021-05-06 17:56:10 -04:00
parent 1d6aa70033
commit f8dbc41b6d
9 changed files with 164 additions and 30 deletions
+1
View File
@@ -34,6 +34,7 @@ require (
github.com/onsi/gomega v1.11.0
github.com/pelletier/go-toml v1.8.0 // indirect
github.com/pressly/goose v2.7.0+incompatible
github.com/robfig/cron/v3 v3.0.0 // indirect
github.com/sirupsen/logrus v1.8.1
github.com/spf13/afero v1.3.1 // indirect
github.com/spf13/cast v1.3.1 // indirect