chore: drop unnecessary scheduler-docker-cleanup hook

All the logic was already called from docker-cleanup, so this just lengthened the cleanup time.
This commit is contained in:
Jose Diaz-Gonzalez
2021-08-08 01:57:44 -04:00
parent e1f1531d42
commit e8d9982330
4 changed files with 1 additions and 74 deletions

View File

@@ -186,20 +186,10 @@ func DockerCleanup(appName string, forceCleanup bool) error {
}
LogInfo1("Cleaning up...")
scheduler := GetAppScheduler(appName)
if appName == "--global" {
appName = ""
}
forceCleanupArg := "false"
if forceCleanup {
forceCleanupArg = "true"
}
if err := PlugnTrigger("scheduler-docker-cleanup", []string{scheduler, appName, forceCleanupArg}...); err != nil {
return fmt.Errorf("Failure while cleaning up app: %s", err)
}
// delete all non-running and dead containers
exitedContainerIDs, _ := listContainers("exited", appName)
deadContainerIDs, _ := listContainers("dead", appName)