Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import sleeper.clients.deploy.AwsScheduleRules;
import sleeper.clients.util.ClientUtils;
import sleeper.core.properties.instance.InstanceProperties;
import sleeper.core.properties.local.LoadLocalProperties;
Expand Down Expand Up @@ -66,7 +65,6 @@ public void tearDown() throws IOException, InterruptedException {
LOGGER.info("scriptsDir: {}", scriptsDir);
LOGGER.info("{}: {}", ID.getPropertyName(), instanceId);

shutdownSystemProcesses();
deleteStack();
waitForStackToDelete();
deleteArtefactsStack();
Expand All @@ -76,10 +74,6 @@ public void tearDown() throws IOException, InterruptedException {
LOGGER.info("Finished tear down");
}

public void shutdownSystemProcesses() throws InterruptedException {
new AwsScheduleRules(clients.getCloudWatch()).pauseInstance(instanceId);
}

public void deleteStack() {
deleteStack(instanceId);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ public static void tearDown(
List<TearDownInstance> tearDownAllInstances = Stream.concat(tearDownMavenInstances.stream(), tearDownStandaloneInstances.stream()).collect(toUnmodifiableList());

for (TearDownInstance instance : tearDownAllInstances) {
instance.shutdownSystemProcesses();
instance.deleteStack();
}
for (TearDownInstance instance : tearDownMavenInstances) {
Expand Down