maxpool 1.5.49 → 1.5.50
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/package.json +1 -1
- package/src/index.js +6 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1150,7 +1150,12 @@ async function serverWorkerCommand() {
|
|
|
1150
1150
|
if (r && !r.hasUpdate) notifyUpdate('Already on the latest version');
|
|
1151
1151
|
};
|
|
1152
1152
|
if (tui) tui.checkNow = checkForUpdatesNow;
|
|
1153
|
-
|
|
1153
|
+
// 30 minutes, not 6 hours. At 6h a fix published minutes ago could sit unapplied until
|
|
1154
|
+
// the evening, which reads as "auto-update is broken" even when it works perfectly (it
|
|
1155
|
+
// did — a 4h gap between publish and pickup was the entire complaint). The check is one
|
|
1156
|
+
// cheap npm registry probe, and applying is a seamless reload, so a tighter cadence
|
|
1157
|
+
// costs almost nothing. Still env-tunable; still floored at 60s.
|
|
1158
|
+
const updateIntervalMs = Math.max(60_000, Number(process.env.MAXPOOL_UPDATE_CHECK_INTERVAL_MS) || 30 * 60 * 1000);
|
|
1154
1159
|
updateTimer = setInterval(() => {
|
|
1155
1160
|
// announce:false — the persistent TUI banner is the passive reminder; only real
|
|
1156
1161
|
// actions (installing / applying) log. runUpdateCheck's latch + hasLease gate prevent
|