Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Let job fail three times before breaking the watch in acorn run (#1960)
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <grant@acorn.io>
  • Loading branch information
g-linville committed Jul 21, 2023
1 parent 9bfd402 commit 547b290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/wait/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func waitForApp(ctx context.Context, c client.Client, app *apiv1.App) (*apiv1.Ap
return true, nil
}
for name, job := range app.Status.AppStatus.Jobs {
if !job.Ready && job.RunningCount == 0 && job.ErrorCount > 0 && len(job.ErrorMessages) > 0 {
if !job.Ready && job.RunningCount == 0 && job.ErrorCount > 2 && len(job.ErrorMessages) > 0 {
return false, fmt.Errorf("job %s failed: %s", name, job.ErrorMessages)
}
}
Expand Down

0 comments on commit 547b290

Please sign in to comment.