Skip to content

Commit

Permalink
Merge pull request #2730 from minrk/sweep-orphans
Browse files Browse the repository at this point in the history
sweep outdated pods in minesweeper
  • Loading branch information
minrk authored Aug 28, 2023
2 parents bf46054 + cd8659d commit 6b0aba3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mybinder/files/minesweeper/minesweeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
"status",
"uids",
],
# 8 hour max age, cleanup after culler
"pod_max_age_seconds": 0,
}

default_config.update(herorat.default_config)
Expand Down Expand Up @@ -378,7 +380,7 @@ async def node_report(pods=None, userid=1000):

# finally, terminate pods that meet the immediate termination condition
pods_to_terminate = [
pod for pod in suspicious_pods if pod["minesweeper"]["should_terminate"]
pod for pod in pods.values() if pod["minesweeper"]["should_terminate"]
]
if pods_to_terminate:
terminate_futures = [
Expand Down
Binary file modified mybinder/files/minesweeper/secrets/herorat.py
Binary file not shown.
Binary file modified secrets/config/common/common.yaml
Binary file not shown.

0 comments on commit 6b0aba3

Please sign in to comment.