Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sweep outdated pods in minesweeper #2730

Merged
merged 1 commit into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.