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

Function timeout_handler

scripts/lcb_runner/evaluation/testing_util.py:44–47  ·  view source on GitHub ↗
(signum, frame)

Source from the content-addressed store, hash-verified

42
43
44def timeout_handler(signum, frame):
45 print("alarm went off")
46 # return
47 raise TimeoutException
48
49
50signal.signal(signal.SIGALRM, timeout_handler)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected