Skip to content

Commit 1834d15

Browse files
authored
Properly set the exit code to non-zero when the waiter fails (#32)
1 parent 0f4893b commit 1834d15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/run.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ func RunTask(profile, cluster, service, taskDefinitionName, imageTag string, ima
133133
err = svc.WaitUntilTasksStopped(tasksInput)
134134
if err != nil {
135135
ctx.WithError(err).Error("The waiter has been finished with an error")
136+
exitCode = 3
136137
}
137138
tasksOutput, err := svc.DescribeTasks(tasksInput)
138139
if err != nil {

0 commit comments

Comments
 (0)