aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--worker/swift/exec.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/worker/swift/exec.go b/worker/swift/exec.go
index 8ad5615..0046def 100644
--- a/worker/swift/exec.go
+++ b/worker/swift/exec.go
@@ -199,7 +199,14 @@ func doExec(
}
defer removeWorkingDir(workingDir)
- res = initSwiftProject(ctx, workingDir, maxDuration)
+ for range 3 {
+ res = initSwiftProject(ctx, workingDir, maxDuration)
+ if res.success() {
+ break
+ }
+ time.Sleep(1 * time.Second)
+ maxDuration += 1 * time.Second
+ }
if !res.success() {
return res
}