diff --git a/internal/config/config_test.go b/internal/config/config_test.go index 18cb2d08..822063e8 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -864,7 +864,7 @@ func TestForceRefreshInterval(t *testing.T) { t.Fatalf(`Parsing failure: %v`, err) } - expected := 42 * time.Second + expected := 42 * time.Minute result := opts.ForceRefreshInterval() if result != expected { diff --git a/internal/config/options.go b/internal/config/options.go index 368c0816..11f5a77d 100644 --- a/internal/config/options.go +++ b/internal/config/options.go @@ -29,7 +29,7 @@ const ( defaultBasePath = "" defaultWorkerPoolSize = 16 defaultPollingFrequency = 60 * time.Minute - defaultForceRefreshInterval = 30 * time.Second + defaultForceRefreshInterval = 30 * time.Minute defaultBatchSize = 100 defaultPollingScheduler = "round_robin" defaultSchedulerEntryFrequencyMinInterval = 5 * time.Minute @@ -769,7 +769,7 @@ func (o *options) SortedOptions(redactSecret bool) []*option { "OAUTH2_REDIRECT_URL": o.oauth2RedirectURL, "OAUTH2_USER_CREATION": o.oauth2UserCreationAllowed, "DISABLE_LOCAL_AUTH": o.disableLocalAuth, - "FORCE_REFRESH_INTERVAL": int(o.forceRefreshInterval.Seconds()), + "FORCE_REFRESH_INTERVAL": int(o.forceRefreshInterval.Minutes()), "POLLING_FREQUENCY": int(o.pollingFrequency.Minutes()), "POLLING_LIMIT_PER_HOST": o.pollingLimitPerHost, "POLLING_PARSING_ERROR_LIMIT": o.pollingParsingErrorLimit, diff --git a/internal/config/parser.go b/internal/config/parser.go index f1fdf5ab..752d96bb 100644 --- a/internal/config/parser.go +++ b/internal/config/parser.go @@ -139,7 +139,7 @@ func (p *parser) parseLines(lines []string) (err error) { case "WORKER_POOL_SIZE": p.opts.workerPoolSize = parseInt(value, defaultWorkerPoolSize) case "FORCE_REFRESH_INTERVAL": - p.opts.forceRefreshInterval = parseInterval(value, time.Second, defaultForceRefreshInterval) + p.opts.forceRefreshInterval = parseInterval(value, time.Minute, defaultForceRefreshInterval) case "BATCH_SIZE": p.opts.batchSize = parseInt(value, defaultBatchSize) case "POLLING_FREQUENCY":