1 parent 32433a3 commit 6d12008Copy full SHA for 6d12008
1 file changed
cmd/beast/run.go
@@ -56,6 +56,10 @@ func cleanupRunningContainers() {
56
57
for _, challenge := range challenges {
58
if challenge.Status == core.DEPLOY_STATUS["deployed"] {
59
+ if challenge.Instanced {
60
+ _ = manager.KillChallengeInstances(challenge.Name)
61
+ }
62
+
63
err = manager.UndeployChallenge(challenge.Name)
64
if err != nil {
65
log.Errorln(fmt.Sprintf("Failed to undeploy challenge [Id: %v] %s", challenge.ID, challenge.Name))
@@ -152,13 +156,13 @@ func cleanup() {
152
156
stopSseNotificationHub()
153
157
stopApiScheduler()
154
158
159
+ cleanupRunningContainers()
160
155
161
stopWorkerQueue()
162
stopRemoteManagers()
163
164
saveLeaderboardCache()
165
- cleanupRunningContainers()
-
166
cleanupCacheConnections()
167
cleanupDatabaseConnections()
168
0 commit comments