Skip to content

Commit

Permalink
starter: add retries on errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yorugac committed Feb 11, 2022
1 parent 46fb8e3 commit 303db2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/resources/containers/curl.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func NewCurlContainer(hostnames []string, image string, command []string, env []

var parts []string
for _, hostname := range hostnames {
parts = append(parts, fmt.Sprintf("curl -X PATCH -H 'Content-Type: application/json' http://%s:6565/v1/status -d '%s'", hostname, req))
parts = append(parts, fmt.Sprintf("curl --retry 3 -X PATCH -H 'Content-Type: application/json' http://%s:6565/v1/status -d '%s'", hostname, req))
}
return corev1.Container{
Name: "k6-curl",
Expand Down

0 comments on commit 303db2b

Please sign in to comment.