Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into 448-deployment-gett…
Browse files Browse the repository at this point in the history
…ing-stuck-at-finalizing-the-build-phase
  • Loading branch information
iszulcdeepsense committed May 15, 2024
2 parents ccbdb3a + 342a9f8 commit 1f119c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- "Connection refused" error is now retriable in async job calls (will be retried automatically).
([#459](https://github.com/TheRacetrack/racetrack/issues/459))

### Fixed
- Long deployments (over 20 minutes) no longer get stuck in the final stage.
([#448](https://github.com/TheRacetrack/racetrack/issues/448))
Expand Down
6 changes: 5 additions & 1 deletion pub/async.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"net/url"
"strconv"
"strings"
"syscall"
"time"

"github.com/gin-gonic/gin"
Expand Down Expand Up @@ -215,7 +216,10 @@ func makeJobCall(
if errors.Is(err, io.EOF) {
return WrapError("connection broken to a target job (job may have died)", err), true
}
return WrapError("making request to a job", err), false
if errors.Is(err, syscall.ECONNREFUSED) {
return WrapError("connection refused to a target job (job may have died)", err), true
}
return WrapError("making request to a job", err), true
}

// Transform redirect links to relative (without hostname).
Expand Down

0 comments on commit 1f119c0

Please sign in to comment.