async function waitJobs (serversArg: ServerInfo[] | ServerInfo) {
const pendingJobWait = process.env.NODE_PENDING_JOB_WAIT
? parseInt(process.env.NODE_PENDING_JOB_WAIT, 10)
- : 500
+ : 250
let servers: ServerInfo[]
}
if (pendingRequests) {
- await wait(1000)
+ await wait(pendingJobWait)
}
} while (pendingRequests)
}