overlord-cli 0.2607121101.0 → 0.2607122001.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7999,6 +7999,9 @@ function applyPollJitter(intervalMs, random = Math.random) {
|
|
|
7999
7999
|
const spread = intervalMs * 0.1;
|
|
8000
8000
|
return Math.round(intervalMs + (random() * 2 - 1) * spread);
|
|
8001
8001
|
}
|
|
8002
|
+
function nextRunnerLastError(pollError) {
|
|
8003
|
+
return pollError;
|
|
8004
|
+
}
|
|
8002
8005
|
function resolveOverlordAppInvocation({
|
|
8003
8006
|
platform: platform2 = process.platform,
|
|
8004
8007
|
homedir: homedir2 = os4.homedir(),
|
|
@@ -9473,7 +9476,9 @@ async function runRunnerSupervisor({
|
|
|
9473
9476
|
lastHeartbeatAt: now.toISOString(),
|
|
9474
9477
|
lastClaimedAt: launched ? now.toISOString() : state.lastClaimedAt,
|
|
9475
9478
|
lastLaunchedAt: launched ? now.toISOString() : state.lastLaunchedAt,
|
|
9476
|
-
|
|
9479
|
+
// Reflect the latest poll's outcome so a resolved failure (e.g. an auth
|
|
9480
|
+
// error from before the user logged in) clears instead of sticking.
|
|
9481
|
+
lastError: nextRunnerLastError(lastError),
|
|
9477
9482
|
currentPollIntervalMs: base
|
|
9478
9483
|
});
|
|
9479
9484
|
await new Promise((resolve) => setTimeout(resolve, applyPollJitter(base)));
|