Skip to content

Commit

Permalink
[BACKPORT 2.20][PLAT-12803]: Make configure db task abortable
Browse files Browse the repository at this point in the history
Summary:
Made configure db api abortable
Original diff/commit: 291a7b5/D32581

Test Plan: Tested manually aborting and re-triggering the task

Reviewers: anijhawan

Reviewed By: anijhawan

Subscribers: yugaware

Tags: #jenkins-ready

Differential Revision: https://phorge.dev.yugabyte.com/D32611
  • Loading branch information
vipul-yb committed Feb 23, 2024
1 parent 13d2f1a commit 69a0840
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ public abstract class UniverseTaskBase extends AbstractTaskBase {
TaskType.EditKubernetesUniverse,
TaskType.RestartUniverseKubernetesUpgrade,
TaskType.CertsRotateKubernetesUpgrade,
TaskType.ConfigureDBApisKubernetes,
TaskType.GFlagsUpgrade,
TaskType.SoftwareUpgrade,
TaskType.SoftwareUpgradeYB,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import com.google.inject.Inject;
import com.yugabyte.yw.commissioner.BaseTaskDependencies;
import com.yugabyte.yw.commissioner.ITask.Abortable;
import com.yugabyte.yw.commissioner.UpgradeTaskBase;
import com.yugabyte.yw.commissioner.UserTaskDetails.SubTaskGroupType;
import com.yugabyte.yw.forms.ConfigureDBApiParams;
Expand All @@ -17,6 +18,7 @@
import java.util.List;
import java.util.stream.Collectors;

@Abortable
public class ConfigureDBApis extends UpgradeTaskBase {

@Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@

import com.google.inject.Inject;
import com.yugabyte.yw.commissioner.BaseTaskDependencies;
import com.yugabyte.yw.commissioner.ITask.Abortable;
import com.yugabyte.yw.commissioner.KubernetesUpgradeTaskBase;
import com.yugabyte.yw.commissioner.UserTaskDetails.SubTaskGroupType;
import com.yugabyte.yw.forms.ConfigureDBApiParams;
import com.yugabyte.yw.forms.UniverseTaskParams;
import com.yugabyte.yw.forms.UniverseTaskParams.CommunicationPorts;
import com.yugabyte.yw.models.Universe;

@Abortable
public class ConfigureDBApisKubernetes extends KubernetesUpgradeTaskBase {

@Inject
Expand Down

0 comments on commit 69a0840

Please sign in to comment.