File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -310,7 +310,8 @@ def execute(
310310 target = resource_monitor ,
311311 kwargs = dict (
312312 process = ps_process ,
313- check_interval_s = self .resource_check_interval_s or DEFAULT_RESOURCE_CHECK_INTERVAL_S ,
313+ check_interval_s = self .resource_check_interval_s
314+ or DEFAULT_RESOURCE_CHECK_INTERVAL_S ,
314315 kill_flag = kill_flag ,
315316 mem_exceeded_flag = mem_exceeded_flag ,
316317 cpu_exceeded_flag = cpu_exceeded_flag ,
Original file line number Diff line number Diff line change 3838 DEFAULT_EVOLVE_START_MARKER ,
3939 DEFAULT_MAX_LOG_MSG_SIZE ,
4040 DEFAULT_MAX_MEM_BYTES ,
41- DEFAULT_RESOURCE_CHECK_INTERVAL_S ,
4241 DEFAULT_MIGRATION_INTERVAL ,
4342 DEFAULT_MIGRATION_RATE ,
4443 DEFAULT_PROMPT_END_MARKER ,
4544 DEFAULT_PROMPT_START_MARKER ,
45+ DEFAULT_RESOURCE_CHECK_INTERVAL_S ,
4646 LANGUAGE_TO_EXTENSION ,
4747)
4848from codeevolve .utils .logging import get_elapsed_time , get_logger
@@ -1065,7 +1065,9 @@ def _create_evaluator(
10651065 cwd = args ["inpt_dir" ],
10661066 timeout_s = budget .get ("eval_timeout" , DEFAULT_EVAL_TIMEOUT_S ),
10671067 max_mem_b = budget .get ("max_mem_bytes" , DEFAULT_MAX_MEM_BYTES ),
1068- resource_check_interval_s = budget .get ("resource_check_interval_s" , DEFAULT_RESOURCE_CHECK_INTERVAL_S ),
1068+ resource_check_interval_s = budget .get (
1069+ "resource_check_interval_s" , DEFAULT_RESOURCE_CHECK_INTERVAL_S
1070+ ),
10691071 logger = logger ,
10701072 )
10711073
You can’t perform that action at this time.
0 commit comments