diff --git a/ferry.go b/ferry.go index 79626787d..72be5e2cc 100644 --- a/ferry.go +++ b/ferry.go @@ -36,6 +36,7 @@ const ( StateVerifyBeforeCutover = "verify-before-cutover" StateCutover = "cutover" StateDone = "done" + minReportFrequency = 1 * time.Minute ) func quoteField(field string) string { @@ -575,6 +576,9 @@ func (f *Ferry) Run() { defer supportingServicesWg.Done() frequency := time.Duration(f.Config.ProgressReportFrequency) * time.Millisecond + if frequency < minReportFrequency { + frequency = minReportFrequency + } for { select { @@ -593,6 +597,9 @@ func (f *Ferry) Run() { defer supportingServicesWg.Done() frequency := time.Duration(f.Config.StateReportFrequency) * time.Millisecond + if frequency < minReportFrequency { + frequency = minReportFrequency + } for { select {