Scripts(offline): ignore stdout

This commit is contained in:
Pieter Vander Vennet 2025-07-31 01:06:55 +02:00
parent 0a3db2d1dc
commit 34ca5c47d5

View file

@ -6,7 +6,7 @@ import { spawn } from "child_process"
function startProcess(script: string): Promise<void> {
return new Promise((resolve, reject) => {
const child = spawn("node", [script], { stdio: "inherit" })
const child = spawn("node", [script], { stdio: "ignore" })
child.on("close", (code) => {
if (code === 0) resolve()
@ -72,6 +72,7 @@ class GeneratePmTilesExtracts extends Script {
do {
batch = this.createBatch(generator, numberOfThreads)
await Promise.all(batch)
console.log("Completed", numberOfThreads, "processes")
} while (batch.length > 0)
}