@kynver-app/runtime 0.1.117 → 0.1.118
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/cli.js +4 -1
- package/dist/cli.js.map +2 -2
- package/dist/index.js +4 -1
- package/dist/index.js.map +2 -2
- package/dist/server/cleanup.js +4 -1
- package/dist/server/cleanup.js.map +2 -2
- package/package.json +1 -1
package/dist/server/cleanup.js
CHANGED
|
@@ -3434,7 +3434,10 @@ function observeCleanupDiskPressure(input = {}) {
|
|
|
3434
3434
|
diskPath,
|
|
3435
3435
|
diskMaxUsedPercent: input.diskMaxUsedPercent ?? maxUsedPercent
|
|
3436
3436
|
});
|
|
3437
|
-
|
|
3437
|
+
let pressured = !diskGate.ok || diskGate.usedPercent >= maxUsedPercent;
|
|
3438
|
+
const force = process.env.KYNVER_CLEANUP_DISK_PRESSURE_FORCE?.trim().toLowerCase();
|
|
3439
|
+
if (force === "none" || force === "off" || force === "0") pressured = false;
|
|
3440
|
+
else if (force === "pressured" || force === "on" || force === "1") pressured = true;
|
|
3438
3441
|
return { diskGate, pressured, maxUsedPercent };
|
|
3439
3442
|
}
|
|
3440
3443
|
function applyDiskPressureToRetention(retention, pressure) {
|