Skip to content

Commit

Permalink
Adds missed failure condition
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnadurai committed Jun 1, 2019
1 parent 60d9b73 commit 79f7b05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controller.v1/tensorflow/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ func (tc *TFController) updateStatusSingle(tfjob *tfv1.TFJob, rtype tfv1.TFRepli
tflogger.LoggerForJob(tfjob).Infof("Append tfjob condition error: %v", err)
return err
}
tfJobsFailureCount.Inc()
tfJobsRestartCount.Inc()
} else {
msg := fmt.Sprintf("TFJob %s has failed because %d %s replica(s) failed.",
Expand Down

0 comments on commit 79f7b05

Please sign in to comment.