fix(control-plane): isolate one AMS tenant's wake failure from the rest of the tick - #10202
Conversation
…st of the tick A rejection from stub.start(), pollForExitCode's getState(), or either registry.upsert() call inside wakeDueAmsTenants aborted the whole tick, leaving every remaining due tenant untouched and the failing tenant's lastRunAt/lastExitCode never written. Wrap each tenant's wake in a try/catch, add an explicit AmsWakeResult.failed field, and still attempt (and catch a second failure of) the lastRunAt write when a tenant's wake throws.
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-31 12:46:40 UTC
Review summary Nits — 4 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #10202 +/- ##
==========================================
- Coverage 92.21% 91.35% -0.87%
==========================================
Files 934 934
Lines 114178 114206 +28
Branches 27593 27598 +5
==========================================
- Hits 105294 104328 -966
- Misses 7582 8771 +1189
+ Partials 1302 1107 -195
Flags with carried forward coverage won't be shown. Click here to find out more.
|
fix(control-plane): isolate one AMS tenant's wake failure from the rest of the tick
A rejection from stub.start(), pollForExitCode's getState(), or either registry.upsert() call inside
wakeDueAmsTenants aborted the whole tick, leaving every remaining due tenant untouched and the failing
tenant's lastRunAt/lastExitCode never written. Wrap each tenant's wake in a try/catch, add an explicit
AmsWakeResult.failed field, and still attempt (and catch a second failure of) the lastRunAt write when
a tenant's wake throws.
Closes #10063