PlanktoScope / forklift

Composable, reprovisionable, decentralized management of apps & configs on Raspberry Pis and other embedded Linux systems
Apache License 2.0
6 stars 0 forks source link

host/docker: Enable dependency-aware & concurrent deletion of resources in `host rm` #230

Open ethanjli opened 1 month ago

ethanjli commented 1 month ago

Currently, the host rm command deletes apps sequentially without parallelism (which makes the subcommand rather slow), and without sorting apps by resource dependencies (e.g. services which depend on particular networks); instead, apps are deleted in alphabetical order (which enables deletion orderings which will partially fail, so that the remaining resources must be manually deleted). Instead, host rm should delete apps in a way that is aware of resource dependencies and so that services can be deleted concurrently for faster execution.