Check failing resolvers asynchronously

This commit is contained in:
Daniel
2023-10-10 14:10:40 +02:00
parent a386cf72f1
commit 995429629b
9 changed files with 317 additions and 192 deletions

View File

@@ -235,7 +235,13 @@ func TriggerUpdate(forceIndexCheck, downloadAll bool) error {
if downloadAll {
forceDownload.Set()
}
updateTask.StartASAP()
// If index check if forced, start quicker.
if forceIndexCheck {
updateTask.StartASAP()
} else {
updateTask.Queue()
}
}
log.Debugf("updates: triggering update to run as soon as possible")