mirror of
https://github.com/actions/runner.git
synced 2025-12-11 12:57:05 +00:00
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:
@@ -82,7 +82,8 @@ var gracefulShutdown = function (code) {
|
||||
console.log('Sending SIGINT to runner listener to stop');
|
||||
listener.kill('SIGINT');
|
||||
|
||||
// TODO wait for 30 seconds and send a SIGKILL
|
||||
console.log('Sending SIGKILL to runner listener');
|
||||
setTimeout(() => listener.kill('SIGKILL'), 30000);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user