diff --git a/tools/serve/serve.py b/tools/serve/serve.py index 6ad06cafbd147a..84344a56a78f24 100644 --- a/tools/serve/serve.py +++ b/tools/serve/serve.py @@ -1280,6 +1280,11 @@ def run(config_cls=ConfigBuilder, route_builder=None, mp_context=None, log_handl server.wait(timeout=1) if server.proc.exitcode == 0: logger.info('Status of subprocess "%s": exited correctly', server.proc.name) + elif server.proc.exitcode is None: + logger.warning( + 'Status of subprocess "%s": shutdown timed out', + server.proc.name) + failed_subproc += 1 else: subproc = server.proc logger.warning('Status of subprocess "%s": failed. Exit with non-zero status: %d',