added purging of failed packages again

This commit is contained in:
2021-09-07 12:49:01 +02:00
parent eb5df207a2
commit f6a2561c95

View File

@@ -127,6 +127,9 @@ func (b *BuildManager) buildWorker(id int) {
dbPkg.Update().SetStatus(FAILED).SetBuildTime(time.Now()).SetBuildDuration(uint64(time.Now().Sub(start).Milliseconds())).SetHash(pkg.Hash).SaveX(context.Background())
dbLock.Unlock()
// purge failed package from repo
b.repoPurge[pkg.FullRepo] <- pkg
gitClean(pkg)
b.buildWG.Done()
continue