Sleep Scheduler: reduce check interval and log level

Reduce the check interval and the log level of "nothing to do" messages,
from "developer friendly" to "actually useful".
This commit is contained in:
Sybren A. Stüvel 2022-07-17 17:31:51 +02:00
parent d7b164133a
commit a6ca3f7bdc

View File

@ -15,7 +15,7 @@ import (
)
// Time period for checking the schedule of every worker.
const checkInterval = 10 * time.Second
const checkInterval = 1 * time.Minute
// SleepScheduler manages wake/sleep cycles of Workers.
type SleepScheduler struct {
@ -165,7 +165,7 @@ func (ss *SleepScheduler) CheckSchedules(ctx context.Context) {
return
}
if len(toCheck) == 0 {
log.Debug().Msg("sleep scheduler: no sleep schedules need checking")
log.Trace().Msg("sleep scheduler: no sleep schedules need checking")
return
}