Skip to content

Commit

Permalink
moved exit code outside of canceling the job. Fixes #1001 (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb committed Apr 8, 2017
1 parent 4b87d58 commit 0b4f014
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plugins/ExecuteJob/templates/start.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@ requirejs([
job = null;
log(`killing process group: ${pid}`);
process.kill(-pid, 'SIGTERM');
if (exitCode !== null) {
log(`exiting w/ code ${exitCode}`);
process.exit(exitCode);
}
}
if (exitCode !== null) {
log(`exiting w/ code ${exitCode}`);
process.exit(exitCode);
}
};

Expand Down

0 comments on commit 0b4f014

Please sign in to comment.