MCPcopy Create free account
hub / github.com/OpenManus/OpenManus-RL / timeout_handler

Function timeout_handler

openmanus_rl/tools/python_code_generator/tool.py:41–42  ·  view source on GitHub ↗
(signum, frame)

Source from the content-addressed store, hash-verified

39
40 else:
41 def timeout_handler(signum, frame):
42 raise TimeoutException("Code execution timed out")
43
44 # Set the timeout handler
45 original_handler = signal.signal(signal.SIGALRM, timeout_handler)

Callers

nothing calls this directly

Calls 1

TimeoutExceptionClass · 0.85

Tested by

no test coverage detected