Compare commits
No commits in common. "8782af64287f7f86dc145c022d8b1a53b32ce3f6" and "654fcbcd67ea30b27749b3e03c97d96ba332d6ce" have entirely different histories.
8782af6428
...
654fcbcd67
@ -56,9 +56,9 @@ func StartPackageQueueWorker(ctx context.Context) {
|
||||
return true
|
||||
})
|
||||
if needsBuild {
|
||||
typ := domain.BuildTypeLTO
|
||||
typ := domain.BuildTypeNormal
|
||||
if errPreviously {
|
||||
typ = domain.BuildTypeNormal
|
||||
typ = domain.BuildTypeLTO
|
||||
}
|
||||
buildItem := domain.BuildQueueItem{
|
||||
Source: v,
|
||||
@ -119,7 +119,7 @@ func processStatus(ctx context.Context) {
|
||||
return true
|
||||
}
|
||||
item.Source.Packages.Iter(func(k string, v domain.PackageInfo) bool {
|
||||
v.Status = domain.Current
|
||||
v.Status = domain.Built
|
||||
v.LastBuildStatus = domain.Built
|
||||
v.Version = item.BuildVersion
|
||||
v.NewVersion = ""
|
||||
@ -146,19 +146,6 @@ func processQueue(ctx context.Context) {
|
||||
case <-ctx.Done():
|
||||
return
|
||||
default:
|
||||
q := GetQueue()
|
||||
buildingFound := false
|
||||
q.ForEach(func(k string, item domain.BuildQueueItem) bool {
|
||||
if item.Status == domain.Building {
|
||||
buildingFound = true
|
||||
return false
|
||||
}
|
||||
return true
|
||||
})
|
||||
if buildingFound {
|
||||
time.Sleep(30 * time.Second)
|
||||
continue
|
||||
}
|
||||
err := ProcessNext()
|
||||
if err != nil {
|
||||
slog.Error("unable to process queue: " + err.Error())
|
||||
|
@ -425,6 +425,9 @@ func GetPackagesCount() domain.PackagesCount {
|
||||
case domain.Error:
|
||||
count.Error++
|
||||
}
|
||||
if pkg.LastBuildStatus == domain.Error {
|
||||
count.Error++
|
||||
}
|
||||
return false
|
||||
})
|
||||
return true
|
||||
|
Loading…
x
Reference in New Issue
Block a user