diff --git a/evaluation/EDA/run_infer.py b/evaluation/EDA/run_infer.py index 35293d5d71c6..366a49a7e958 100644 --- a/evaluation/EDA/run_infer.py +++ b/evaluation/EDA/run_infer.py @@ -1,6 +1,5 @@ import asyncio import logging -import multiprocessing as mp import os import pandas as pd @@ -29,14 +28,6 @@ game = None -def cleanup(): - print('Cleaning up child processes...') - for process in mp.active_children(): - print(f'Terminating child process: {process.name}') - process.terminate() - process.join() - - def codeact_user_response_eda(state: State) -> str: global game model_guess = '' diff --git a/evaluation/biocoder/run_infer.py b/evaluation/biocoder/run_infer.py index ec4913d33e7a..60c45320d4c6 100644 --- a/evaluation/biocoder/run_infer.py +++ b/evaluation/biocoder/run_infer.py @@ -1,7 +1,6 @@ import asyncio import json import logging -import multiprocessing as mp import os import pathlib from functools import partial @@ -26,15 +25,6 @@ from opendevin.core.main import run_agent_controller from opendevin.llm.llm import LLM - -def cleanup(): - print('Cleaning up child processes...') - for process in mp.active_children(): - print(f'Terminating child process: {process.name}') - process.terminate() - process.join() - - AGENT_CLS_TO_FAKE_USER_RESPONSE_FN = { 'CodeActAgent': partial( codeact_user_response, encapsulate_solution=True, try_parse=None diff --git a/evaluation/bird/run_infer.py b/evaluation/bird/run_infer.py index b3ba0c97d50f..a0f3db473932 100644 --- a/evaluation/bird/run_infer.py +++ b/evaluation/bird/run_infer.py @@ -1,7 +1,6 @@ import asyncio import json import logging -import multiprocessing as mp import os import pathlib import re @@ -30,14 +29,6 @@ from opendevin.llm.llm import LLM -def cleanup(): - logger.info('Cleaning up child processes...') - for process in mp.active_children(): - logger.info(f'Terminating child process: {process.name}') - process.terminate() - process.join() - - def codeact_user_response(state: State) -> str: msg = ( 'Please continue working on the task on whatever approach you think is suitable.\n' diff --git a/evaluation/swe_bench/run_infer.py b/evaluation/swe_bench/run_infer.py index d0fd6e4563c3..1cc2b0fc50cf 100644 --- a/evaluation/swe_bench/run_infer.py +++ b/evaluation/swe_bench/run_infer.py @@ -1,6 +1,5 @@ import asyncio import logging -import multiprocessing as mp import os import pathlib @@ -29,15 +28,6 @@ USE_HINT_TEXT = os.environ.get('USE_HINT_TEXT', 'false') == 'true' - -def cleanup(): - print('Cleaning up child processes...') - for process in mp.active_children(): - print(f'Terminating child process: {process.name}') - process.terminate() - process.join() - - AGENT_CLS_TO_FAKE_USER_RESPONSE_FN = { 'CodeActAgent': codeact_user_response, 'CodeActSWEAgent': codeact_user_response,