Skip to content

Commit

Permalink
Properly set the exit code to non-zero when the waiter fails (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekini authored May 8, 2023
1 parent 0f4893b commit 1834d15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ func RunTask(profile, cluster, service, taskDefinitionName, imageTag string, ima
err = svc.WaitUntilTasksStopped(tasksInput)
if err != nil {
ctx.WithError(err).Error("The waiter has been finished with an error")
exitCode = 3
}
tasksOutput, err := svc.DescribeTasks(tasksInput)
if err != nil {
Expand Down

0 comments on commit 1834d15

Please sign in to comment.