Skip to content

Commit 5ebe418

Browse files
committed
Filter out SIGTERM and SIGKILL exit codes from "completed almost ontime"
(cherry picked from commit 07e3b08)
1 parent 8cfa74f commit 5ebe418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exec_helpers/subprocess_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def close_streams(): # type: () -> None
148148
# Force stop cycle if no exit code after kill
149149
except OSError:
150150
exit_code = async_result.interface.poll()
151-
if exit_code is not None: # Nothing to kill
151+
if exit_code is not None and exit_code not in {-9, -15}: # Nothing to kill
152152
self.logger.warning(
153153
"{!s} has been completed just after timeout: please validate timeout.".format(command)
154154
)

0 commit comments

Comments
 (0)