forked from ALHP/ALHP.GO
preventing waiting packages to enter buildqueue
This commit is contained in:
4
main.go
4
main.go
@@ -498,6 +498,10 @@ func (b *BuildManager) syncWorker(ctx context.Context) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, pkg := range queue {
|
for _, pkg := range queue {
|
||||||
|
if pkg.DbPackage.SkipReason != "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
if pkg.Priority() > cutOff && cutOff >= conf.Build.SlowQueueThreshold {
|
if pkg.Priority() > cutOff && cutOff >= conf.Build.SlowQueueThreshold {
|
||||||
slowQueue = append(slowQueue, pkg)
|
slowQueue = append(slowQueue, pkg)
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user