You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2d0d82e
Browse filesBrowse the repository at this point in the historyBrowse files
authored
Stop the wire meters a launcher starts once its runs end (#87)
* Stop the wire meters a launcher starts once its runs end (#82)
Each launcher records the meters it starts and, through a detached waiter, stops them once its trainings
(ServeLearnBench: the tests that follow) have ended; the harness2 restart loop is stopped with its meter as one
process group. A meter found already running is left to the launch that started it.
* Wire meters: stop within a second; reuse only a meter still up on a second look
A launch started right after another could reuse that launch's meter while its waiter was about to stop it.
ServeLearnBench's waiter also waits for the training itself.
* Wire meters: a shared meter stops after every launch using it; a restarted one keeps its ledger
Review fixes for #82:
- A meter started on a ledger an earlier one left carries its totals on
(LEDGER_RESUME=1 in hermit/runtime/wire_meter.py, set by the eight
launchers whose ledger outlives a meter). Once the launchers stop their
meters, the next meter on the port (`run && run eval`, a ServeLearnBench
test run again, a CL-Bench tag refused because it exists) wrote an empty
ledger over the earlier bill. Off by default: lean_swarm's rerun of an
attempt starts empty as before.
- Every launch on a port lists its processes in
/tmp/hermit-wire-meter-<uid>-<port>.users, and the launch that started the
meter stops it only once none of them is alive, so a launch that reuses a
running meter no longer loses it when the starter's run ends.
- OfficeQA ReHarness prints the meter's pid, not the watcher's.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: SmartBea_Linlin_r <80329948+GaoRuilin1@users.noreply.github.com>
Co-authored-by: Haizhong Zheng <hzzheng@umich.edu>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
# The embedding relay signs the reader's keyless requests with the embedding backend's key (none for a keyless server);
110
141
# a relay already on the port is refused unless its /health says it signs (`"signs": true`).
111
-
if [ -n"$EMBED_API_KEY_ENV" ] && health=$(curl -s -m 2 "http://127.0.0.1:$EMBED_PORT/health"2>/dev/null);then
142
+
if [ -n"$EMBED_API_KEY_ENV" ] && health=$(meter_health $EMBED_PORT);then
112
143
case"$health"in*'"signs": true'*) ;; *) echo"REFUSING: port $EMBED_PORT has a relay that does not sign requests (started without UPSTREAM_KEY_ENV); choose another WM_PORT";exit 1;; esac
0 commit comments