Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion rllm/rewards/code_utils/taco.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ def timeout_handler(signum, frame):
raise TimeoutException


signal.signal(signal.SIGALRM, timeout_handler)
try:
signal.signal(signal.SIGALRM, timeout_handler)
except ValueError:
pass # signal only works in main thread; skip in Ray workers
TIMEOUT = 90 # seconds

EXECUTION_RESULTS = {1: "passed", 0: "false", -1: "timeout", -2: "runtime_error", -3: "returncode:{code}", -4: "compile_error"}
Expand Down
Loading