Skip to content

Commit 2572047

Browse files
authored
Remove extra debug log for timeouts (#987)
1 parent f6646e9 commit 2572047

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

helion/autotuner/base_search.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,13 +1128,15 @@ def _consume_result(self, *, raise_on_raise: bool) -> None:
11281128
with contextlib.suppress(Exception):
11291129
os.remove(self.result_path)
11301130
if message_data is None:
1131-
if self.remote_error is None:
1131+
if self.failure_reason == "timeout":
1132+
# Timeout warnings have already been emitted; suppress secondary EOF logs.
1133+
self.remote_error = None
1134+
self._remote_error_handled = True
1135+
elif self.remote_error is None:
11321136
self.remote_error = RemoteError(
11331137
exc_type="EOFError",
11341138
exc_module=__name__,
1135-
exc_args=(
1136-
"No result received from subprocess. Possible timeout.",
1137-
),
1139+
exc_args=("No result received from subprocess.",),
11381140
traceback=None,
11391141
classification="debug",
11401142
)

0 commit comments

Comments
 (0)