MCPcopy Create free account
hub / github.com/RUC-NLPIR/WebThinker / signal_handler

Function signal_handler

scripts/lcb_runner/evaluation/utils_execute.py:122–123  ·  view source on GitHub ↗
(signum, frame)

Source from the content-addressed store, hash-verified

120@contextlib.contextmanager
121def time_limit(seconds):
122 def signal_handler(signum, frame):
123 raise TimeoutException("Timed out!")
124
125 signal.setitimer(signal.ITIMER_REAL, seconds)
126 signal.signal(signal.SIGALRM, signal_handler)

Callers

nothing calls this directly

Calls 1

TimeoutExceptionClass · 0.70

Tested by

no test coverage detected