Added code to terminate pool processes on timeout

This commit is contained in:
slmnemo 2024-10-24 12:49:46 -07:00
parent abb80bb700
commit 929f3892e0

View File

@ -534,6 +534,7 @@ def main():
try:
num_fail+=result.get(timeout=TIMEOUT_DUR)
except TimeoutError:
pool.terminate()
num_fail+=1
print(f"{bcolors.FAIL}%s: Timeout - runtime exceeded %d seconds{bcolors.ENDC}" % (config.cmd, TIMEOUT_DUR))