From 9eeb60e0d5d9c640837dce54ae7c2e800db15ce3 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 19 Sep 2025 13:31:57 +0900 Subject: feat(worker/swift): retry against failure of SwiftPM --- worker/swift/exec.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 } -- cgit v1.2.3-70-g09d2