This repository was archived by the owner on Sep 19, 2022. It is now read-only.
File tree 2 files changed +4
-4
lines changed
controller.v1beta2/pytorch
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -203,8 +203,8 @@ func isFailed(status common.JobStatus) bool {
203
203
// If the condition that we are about to add already exists
204
204
// and has the same status and reason then we are not going to update.
205
205
func setCondition (status * common.JobStatus , condition common.JobCondition ) {
206
- // Do nothing if PyTorchJobStatus have failed condition
207
- if isFailed (* status ) {
206
+ // Do nothing if PyTorchJobStatus is completed
207
+ if isFailed (* status ) || isSucceeded ( * status ) {
208
208
return
209
209
}
210
210
Original file line number Diff line number Diff line change @@ -203,8 +203,8 @@ func isFailed(status common.JobStatus) bool {
203
203
// If the condition that we are about to add already exists
204
204
// and has the same status and reason then we are not going to update.
205
205
func setCondition (status * common.JobStatus , condition common.JobCondition ) {
206
- // Do nothing if PyTorchJobStatus have failed condition
207
- if isFailed (* status ) {
206
+ // Do nothing if PyTorchJobStatus is completed
207
+ if isFailed (* status ) || isSucceeded ( * status ) {
208
208
return
209
209
}
210
210
You can’t perform that action at this time.
0 commit comments