Add infinite timeout
This commit is contained in:
parent
90945d1621
commit
f973ecf281
|
@ -143,12 +143,15 @@ class Job {
|
|||
});
|
||||
}
|
||||
|
||||
const kill_timeout = set_timeout(async _ => {
|
||||
const kill_timeout =
|
||||
(timeout >= 0 &&
|
||||
set_timeout(async _ => {
|
||||
logger.info(
|
||||
`Timeout exceeded timeout=${timeout} uuid=${this.uuid}`
|
||||
);
|
||||
process.kill(proc.pid, 'SIGKILL');
|
||||
}, timeout);
|
||||
}, timeout)) ||
|
||||
null;
|
||||
|
||||
proc.stderr.on('data', async data => {
|
||||
if (eventBus !== null) {
|
||||
|
|
Loading…
Reference in New Issue