fix blocking hot path operations

This commit is contained in:
gsxdsm
2026-04-11 21:23:36 -07:00
parent bddf86346e
commit 5aef58c793
16 changed files with 203 additions and 145 deletions

View File

@@ -126,7 +126,7 @@ export class MissionExecutionLoop extends EventEmitter {
* This handles the case where the engine was shut down mid-validation
* or mid-fix, ensuring those features continue their loop progression.
*/
async recoverActiveMissions(): Promise<void> {
async recoverActiveMissions(): Promise<{ recoveredCount: number }> {
loopLog.log("Starting active mission recovery...");
try {
@@ -188,8 +188,10 @@ export class MissionExecutionLoop extends EventEmitter {
}
loopLog.log(`Active mission recovery complete: recovered ${recoveredCount} features`);
return { recoveredCount };
} catch (err) {
loopLog.error("Error during active mission recovery:", err);
return { recoveredCount: 0 };
}
}