added start delay

This commit is contained in:
2021-12-20 01:14:55 +01:00
parent 70d901b113
commit 42e95d0b75

View File

@@ -55,6 +55,8 @@ func (b *BuildManager) buildWorker(id int, march string) {
b.buildWG.Add(1)
}
rand.Seed(time.Now().UnixNano())
time.Sleep(time.Duration(rand.Float32()*60) * time.Second)
start := time.Now().UTC()
log.Infof("[%s/%s/%s] Build starting", pkg.FullRepo, pkg.Pkgbase, pkg.Version)