mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-05-06 04:50:35 +00:00
fix: add new logs to orchestrator and increase clock change polling to every 5 minutes
This commit is contained in:
@@ -251,12 +251,7 @@ func (o *Orchestrator) Run(mainCtx context.Context) {
|
||||
cb(err)
|
||||
}
|
||||
|
||||
if nextTime := t.task.Next(o.curTime()); nextTime != nil {
|
||||
o.taskQueue.Push(scheduledTask{
|
||||
task: t.task,
|
||||
runAt: *nextTime,
|
||||
})
|
||||
}
|
||||
o.ScheduleTask(t.task, t.priority)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
var taskQueueDefaultPollInterval = 15 * time.Minute
|
||||
var taskQueueDefaultPollInterval = 3 * time.Minute
|
||||
|
||||
type taskQueue struct {
|
||||
dequeueMu sync.Mutex
|
||||
|
||||
Reference in New Issue
Block a user