Skip to content

Commit

Permalink
Correct num of failures (#3722)
Browse files Browse the repository at this point in the history
* set number of failed attempts correctly

* set number of failed attempts correctly
  • Loading branch information
arjun4084346 committed Jul 24, 2023
1 parent 0151890 commit 14262c1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,8 @@ public WorkUnit apply(@Nullable WorkUnit input) {
String errMsg = "Failed to launch and run job " + jobId + " due to " + t.getMessage();
LOG.error(errMsg + ": " + t, t);
this.jobContext.getJobState().setJobFailureException(t);
jobState.setProp(ConfigurationKeys.JOB_FAILURES_KEY,
Integer.parseInt(jobState.getProp(ConfigurationKeys.JOB_FAILURES_KEY, "0")) + 1);
} finally {
try {
troubleshooter.refineIssues();
Expand Down

0 comments on commit 14262c1

Please sign in to comment.