Alexander Whitestone
|
19db78bbf0
|
feat: stale hermes process cleanup script (#829)
Architecture Lint / Linter Tests (pull_request) Successful in 6m45s
Smoke Test / smoke (pull_request) Failing after 8s
Validate Config / YAML Lint (pull_request) Failing after 8s
Validate Config / JSON Validate (pull_request) Successful in 11s
Validate Config / Python Syntax & Import Check (pull_request) Failing after 43s
Validate Config / Python Test Suite (pull_request) Has been skipped
Validate Config / Shell Script Lint (pull_request) Failing after 36s
Validate Config / Cron Syntax Check (pull_request) Successful in 8s
Validate Config / Deploy Script Dry Run (pull_request) Successful in 9s
Validate Config / Playbook Schema Validation (pull_request) Successful in 15s
PR Checklist / pr-checklist (pull_request) Successful in 2m45s
Architecture Lint / Lint Repository (pull_request) Failing after 20s
bin/hermes_cleanup.py:
Identifies stale hermes sessions (old + idle)
Groups by session, tracks parent+children
Memory waste calculation (RSS in MB/GB)
--kill to terminate, --dry-run (default) to report
--max-age (default 24h), --max-cpu (default 0.5%)
--json output, human-readable table
tests/test_hermes_cleanup.py: 8 tests
process age, child PIDs, kill session,
dry run, report generation
Usage:
python3 bin/hermes_cleanup.py # report
python3 bin/hermes_cleanup.py --kill # terminate
python3 bin/hermes_cleanup.py --max-age 12 # 12h threshold
python3 bin/hermes_cleanup.py --json # JSON
|
2026-04-20 20:38:20 -04:00 |
|