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
|
return true
|
||||||
})
|
})
|
||||||
if needsBuild {
|
if needsBuild {
|
||||||
typ := domain.BuildTypeLTO
|
typ := domain.BuildTypeNormal
|
||||||
if errPreviously {
|
if errPreviously {
|
||||||
typ = domain.BuildTypeNormal
|
typ = domain.BuildTypeLTO
|
||||||
}
|
}
|
||||||
buildItem := domain.BuildQueueItem{
|
buildItem := domain.BuildQueueItem{
|
||||||
Source: v,
|
Source: v,
|
||||||
@ -119,7 +119,7 @@ func processStatus(ctx context.Context) {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
item.Source.Packages.Iter(func(k string, v domain.PackageInfo) bool {
|
item.Source.Packages.Iter(func(k string, v domain.PackageInfo) bool {
|
||||||
v.Status = domain.Current
|
v.Status = domain.Built
|
||||||
v.LastBuildStatus = domain.Built
|
v.LastBuildStatus = domain.Built
|
||||||
v.Version = item.BuildVersion
|
v.Version = item.BuildVersion
|
||||||
v.NewVersion = ""
|
v.NewVersion = ""
|
||||||
@ -146,19 +146,6 @@ func processQueue(ctx context.Context) {
|
|||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
return
|
return
|
||||||
default:
|
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()
|
err := ProcessNext()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
slog.Error("unable to process queue: " + err.Error())
|
slog.Error("unable to process queue: " + err.Error())
|
||||||
|
@ -425,6 +425,9 @@ func GetPackagesCount() domain.PackagesCount {
|
|||||||
case domain.Error:
|
case domain.Error:
|
||||||
count.Error++
|
count.Error++
|
||||||
}
|
}
|
||||||
|
if pkg.LastBuildStatus == domain.Error {
|
||||||
|
count.Error++
|
||||||
|
}
|
||||||
return false
|
return false
|
||||||
})
|
})
|
||||||
return true
|
return true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user