Repository navigation
fix(marketcast): heartbeat the offload lease for the whole scoring run (#908) - #926
Merged
Merged
Conversation
#908) The validator touched <hosts>.request only before each round, so one round that forecast for longer than the provisioner's mkt_request_stale_s (1800 s) had its pod torn down mid-run (testnet: a 1-entry round at 32k context on an RTX3090, 'worker closed the session') and was retried, forever. MktLease.heartbeat keeps the request fresh from a daemon thread while the session is open. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SG5aamoFze4bkhr1suMufY
…ops after (#908) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SG5aamoFze4bkhr1suMufY
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
…ouch tmp Tests move into the W-CMP accept dir (one combined PR) and add a publisher test: the request stays fresh WHILE a long round computes. MktLease.touch's tmp file is now per thread, so the heartbeat thread and the round loop never race on one tmp name (a lost replace would abort the run). PATHS: cascade/validator/mkt_offload.py rides along. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01BMT4D7eZUKUF2gocYLVFmj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #908 (launch blocker for MarketCast judging). The validator touched
<hosts>.requestonly before each round. A single round that forecasts for longer than the provisioner'smkt_request_stale_s(1800 s) had its pod torn down mid-run, and every retry died the same way. On testnet, a 1-entry round at 32k context on an RTX3090 took about 38 min; the provisioner loggedmkt_idle=True, thenworker closed the session.MktLease.heartbeat(rid)keeps the request fresh from a daemon thread while the offload session is open. The existing per-round touch is kept. Fake leases withoutheartbeatfall back to a null context.MktLease.touchnow writes a per-thread tmp file, so the heartbeat thread and the round loop never race on one tmp name (a lostreplacewould have aborted the run).One combined PR (tests + code; replaces the split #927). Tests:
tests/accept/w_cmp/test_w_cmp_mkt_lease_heartbeat.py— 3 new tests (lease heartbeat refreshes during a long body; stops after; the offloaded publisher keeps the request fresh WHILE a long round computes, then releases). All fail on BASE with an AssertionError, pass on HEAD. PATHS:cascade/validator/mkt_offload.pyadded to W-CMP.check-pr: MODE combined.Exposure:
_mkt_publish_remote/MktLeaserun only on the MAIN validator with a MarketCast offload host (mkt_eval_hosts). No computed value changes (lease file mtime only). Main-validator only, no external update.🤖 Generated with Claude Code
https://claude.ai/code/session_01BMT4D7eZUKUF2gocYLVFmj