Skip to content

Commit 00ac872

Browse files
author
Axel von Bertoldi
committed
Retry package push commands
This will work around if not exactly solve the concurrency issues on upload we've seen during testing.
1 parent 73d5906 commit 00ac872

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

magefiles/pulp/push.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func (p *debPusher) Push(releases, pkgFiles []string) error {
147147
for _, release := range releases {
148148
for _, pkgFile := range pkgFiles {
149149
pool.Go(func() error {
150-
return p.runPulpCmd(p.pushArgs(release, pkgFile)...)
150+
return p.retryPulpCmd(p.pushArgs(release, pkgFile), io.Discard)
151151
})
152152
}
153153
}
@@ -255,7 +255,7 @@ func (p *rpmPusher) doPush(pkgFile, repo string) (string, error) {
255255
args := p.pushArgs(pkgFile, repo)
256256

257257
out := bytes.Buffer{}
258-
if err := p.execCmd(&out, "pulp", args...); err != nil {
258+
if err := p.retryPulpCmd(args, &out); err != nil {
259259
return "", err
260260
}
261261

0 commit comments

Comments
 (0)