Fixed hanging executor
This commit is contained in:
parent
1bb588f294
commit
247894f6ad
3 changed files with 3 additions and 3 deletions
BIN
bin/executor
BIN
bin/executor
Binary file not shown.
2
dist/bundles/qualiteer-executor.mjs
vendored
2
dist/bundles/qualiteer-executor.mjs
vendored
File diff suppressed because one or more lines are too long
|
@ -57,12 +57,12 @@ export default class Executor {
|
||||||
onClose() {
|
onClose() {
|
||||||
console.log("Server disconnected, terminating process.");
|
console.log("Server disconnected, terminating process.");
|
||||||
if (this.proc) this.proc.kill("SIGKILL");
|
if (this.proc) this.proc.kill("SIGKILL");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onProcClose(code) {
|
onProcClose(code) {
|
||||||
this.socket.emit(events.JOB_CLS, code);
|
this.socket.emit(events.JOB_CLS, code, () => this.socket.disconnect());
|
||||||
console.log(`Process finished with code ${code}`);
|
console.log(`Process finished with code ${code}`);
|
||||||
this.socket.disconnect();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
report(d, dType) {
|
report(d, dType) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue