send SIGKILL after 30s in gracefulShutdown() (#1156)

This resolves the TODO.

Fixes: https://github.com/actions/runner/issues/680
Signed-off-by: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
Darshan Sen
2021-06-21 21:37:39 +05:30
committed by GitHub
parent 40d6eb3da3
commit 0a6c34669c

View File

@@ -82,7 +82,8 @@ var gracefulShutdown = function (code) {
console.log('Sending SIGINT to runner listener to stop'); console.log('Sending SIGINT to runner listener to stop');
listener.kill('SIGINT'); listener.kill('SIGINT');
// TODO wait for 30 seconds and send a SIGKILL console.log('Sending SIGKILL to runner listener');
setTimeout(() => listener.kill('SIGKILL'), 30000);
} }
} }