Skip to content

Commit

Permalink
try to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sperlingxx committed Apr 17, 2020
1 parent f737625 commit c5faa93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/apis/controller/experiments/v1alpha3/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ const (
DefaultTrialTemplatePath = "defaultTrialTemplate.yaml"

// Default value of Spec.DefaultResumePolicy
DefaultResumePolicy = NeverResume
DefaultResumePolicy = LongRunning
)
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (r *ReconcileSuggestion) Reconcile(request reconcile.Request) (reconcile.Re
}
instance := oldS.DeepCopy()
// If ResumePolicyType is LongRunning, suggestion status will never be succeeded.
if instance.IsCompleted() {
if instance.IsSucceeded() {
err = r.deleteDeployment(instance)
if err != nil {
return reconcile.Result{}, err
Expand Down

0 comments on commit c5faa93

Please sign in to comment.