Skip to content

Commit

Permalink
DEVEX-1960 Retry 502 outside of dnanexus job env (#60)
Browse files Browse the repository at this point in the history
* Retry 502 outside of dnanexus jobs

* Bump golang to 1.16.6

* Bump version to v0.5.7
  • Loading branch information
kpjensen authored Jul 27, 2021
1 parent ccfc8a5 commit c5d258d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.14.2'
go-version: '1.16.6'
- name: Build Macos executable
run: |
set -x
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.14.2'
go-version: '1.16.6'
- name: go dependencies
run: go get -u github.com/google/subcommands
- name: Build Windows executable
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.14.2'
go-version: '1.16.6'
- name: apt-get dependencies
run: sudo apt-get install -y build-essential
- name: Build Linux executable
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.14.2'
go-version: '1.16.6'
- name: Build Macos executable
run: |
set -x
Expand All @@ -35,7 +35,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.14.2'
go-version: '1.16.6'
- name: Build Windows executable
run: |
go build -o dx-download-agent.exe cmd/dx-download-agent/dx-download-agent.go
Expand All @@ -51,7 +51,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.14.2'
go-version: '1.16.6'
- name: apt-get dependencies
run: sudo apt-get install -y build-essential
- name: Build Linux executable
Expand Down
2 changes: 1 addition & 1 deletion dx_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func isRetryable(ctx context.Context, requestType string, status int) bool {
// Bad gateway
// Sometimes caused by s3 closing the connection to the worker's
// download proxy. Retryable inside a job.
if status == 502 && os.Getenv("DX_JOB_ID") != "" {
if status == 502 {
return true
}

Expand Down
2 changes: 1 addition & 1 deletion util.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const (

// Extracted automatically with a shell script, so keep the format:
// version = XXXX
Version = "v0.5.6"
Version = "v0.5.7"
)

// Configuration options for the download agent
Expand Down

0 comments on commit c5d258d

Please sign in to comment.