@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/index.js
CHANGED
|
@@ -11967,7 +11967,10 @@ function observeCleanupDiskPressure(input = {}) {
|
|
|
11967
11967
|
diskPath,
|
|
11968
11968
|
diskMaxUsedPercent: input.diskMaxUsedPercent ?? maxUsedPercent
|
|
11969
11969
|
});
|
|
11970
|
-
|
|
11970
|
+
let pressured = !diskGate.ok || diskGate.usedPercent >= maxUsedPercent;
|
|
11971
|
+
const force = process.env.KYNVER_CLEANUP_DISK_PRESSURE_FORCE?.trim().toLowerCase();
|
|
11972
|
+
if (force === "none" || force === "off" || force === "0") pressured = false;
|
|
11973
|
+
else if (force === "pressured" || force === "on" || force === "1") pressured = true;
|
|
11971
11974
|
return { diskGate, pressured, maxUsedPercent };
|
|
11972
11975
|
}
|
|
11973
11976
|
function applyDiskPressureToRetention(retention, pressure) {
|