We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed4249d commit c3f4264Copy full SHA for c3f4264
1 file changed
src/plugins/GenerateJob/templates/start.ejs
@@ -219,7 +219,13 @@ requirejs([
219
pid = job.pid;
220
job = null;
221
log(`killing process group: ${pid}`);
222
- process.kill(-pid, 'SIGTERM');
+ try {
223
+ process.kill(-pid, 'SIGTERM');
224
+ } catch (err) {
225
+ if (!err.message.includes('ESRCH')) {
226
+ log('Error while killing process group: ' + err.message);
227
+ }
228
229
}
230
if (exitCode !== undefined) {
231
if (exitCode !== null) {
0 commit comments