querysub 0.249.0 → 0.251.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/package.json
CHANGED
|
@@ -25,7 +25,7 @@ import { onServiceConfigChange } from "./machineController";
|
|
|
25
25
|
import { PromiseObj } from "../promise";
|
|
26
26
|
import path from "path";
|
|
27
27
|
|
|
28
|
-
const PIPE_FILE_LINE_LIMIT =
|
|
28
|
+
const PIPE_FILE_LINE_LIMIT = 10_000;
|
|
29
29
|
|
|
30
30
|
const getLiveMachineInfo = measureWrap(async function getLiveMachineInfo() {
|
|
31
31
|
let machineInfo: MachineInfo = {
|
|
@@ -371,6 +371,8 @@ while IFS= read -r line; do
|
|
|
371
371
|
sleep 2
|
|
372
372
|
# Keep only the last ${PIPE_FILE_LINE_LIMIT} lines when file gets too many lines
|
|
373
373
|
tail -n ${Math.floor(PIPE_FILE_LINE_LIMIT / 2)} "${pipeFile}" > "${pipeFile}.tmp" && mv "${pipeFile}.tmp" "${pipeFile}"
|
|
374
|
+
# AND, give it time to read the truncation
|
|
375
|
+
sleep 2
|
|
374
376
|
fi
|
|
375
377
|
fi
|
|
376
378
|
fi
|