Skip to content

Commit

Permalink
add waits to delete_pool
Browse files Browse the repository at this point in the history
  • Loading branch information
BrendanSchell committed Sep 3, 2024
1 parent b5f5c3f commit 1da40cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/syft/src/syft/custom_worker/runner_k8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,11 @@ def delete_pool(self, pool_name: str) -> bool:
selector = {"app.kubernetes.io/component": pool_name}
for _set in self.client.get("statefulsets", label_selector=selector):
_set.delete(propagation_policy="Foreground")
_set.wait(conditions="delete")

for _secret in self.client.get("secrets", label_selector=selector):
_secret.delete(propagation_policy="Foreground")
_secret.wait(conditions="delete")

return True

Expand Down

0 comments on commit 1da40cb

Please sign in to comment.