@kynver-app/runtime 0.1.116 → 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/cli.js
CHANGED
|
@@ -11863,7 +11863,10 @@ function observeCleanupDiskPressure(input = {}) {
|
|
|
11863
11863
|
diskPath,
|
|
11864
11864
|
diskMaxUsedPercent: input.diskMaxUsedPercent ?? maxUsedPercent
|
|
11865
11865
|
});
|
|
11866
|
-
|
|
11866
|
+
let pressured = !diskGate.ok || diskGate.usedPercent >= maxUsedPercent;
|
|
11867
|
+
const force = process.env.KYNVER_CLEANUP_DISK_PRESSURE_FORCE?.trim().toLowerCase();
|
|
11868
|
+
if (force === "none" || force === "off" || force === "0") pressured = false;
|
|
11869
|
+
else if (force === "pressured" || force === "on" || force === "1") pressured = true;
|
|
11867
11870
|
return { diskGate, pressured, maxUsedPercent };
|
|
11868
11871
|
}
|
|
11869
11872
|
function applyDiskPressureToRetention(retention, pressure) {
|