diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-09-19 13:31:57 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-09-19 13:31:57 +0900 |
| commit | 9eeb60e0d5d9c640837dce54ae7c2e800db15ce3 (patch) | |
| tree | 0aa88c9f761c8d4667686338047d714aab9a91b4 /worker/swift | |
| parent | 1e7e3c111263d32a8cdebf72bd5ce03e22434cd0 (diff) | |
| download | iosdc-japan-2025-albatross-9eeb60e0d5d9c640837dce54ae7c2e800db15ce3.tar.gz iosdc-japan-2025-albatross-9eeb60e0d5d9c640837dce54ae7c2e800db15ce3.tar.zst iosdc-japan-2025-albatross-9eeb60e0d5d9c640837dce54ae7c2e800db15ce3.zip | |
feat(worker/swift): retry against failure of SwiftPM
Diffstat (limited to 'worker/swift')
| -rw-r--r-- | worker/swift/exec.go | 9 |
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 } |
