@@ -363,17 +363,6 @@ def _create_run_with_edited_config(self, run_id: str) -> Optional[str]:
363363 ui_yaml = self .state .runs [run_id ]["prompt" ]["resolved_config_yaml" ]
364364 new_config = yaml .safe_load (ui_yaml )
365365
366- print (f"[CONFIG DEBUG] _create_run_with_edited_config" )
367- print (f"[CONFIG DEBUG] old run_id: { run_id } " )
368- print (f"[CONFIG DEBUG] old decider_name: { run .decider_name } " )
369- print (
370- f"[CONFIG DEBUG] old config keys: { list (run .decider_params .resolved_config .keys ())[:5 ]} "
371- )
372- print (f"[CONFIG DEBUG] new config keys: { list (new_config .keys ())[:5 ]} " )
373- print (
374- f"[CONFIG DEBUG] configs equal: { run .decider_params .resolved_config == new_config } "
375- )
376-
377366 decider_options = self .decider_registry .get_decider_options (
378367 run .probe_id , run .decider_name
379368 )
@@ -385,8 +374,6 @@ def _create_run_with_edited_config(self, run_id: str) -> Optional[str]:
385374 run .decider_name , new_config , llm_backbones
386375 )
387376
388- print (f"[CONFIG DEBUG] new decider_name: { new_decider_name } " )
389-
390377 updated_params = run .decider_params .model_copy (
391378 update = {"resolved_config" : new_config }
392379 )
@@ -399,13 +386,6 @@ def _create_run_with_edited_config(self, run_id: str) -> Optional[str]:
399386 "decision" : None ,
400387 }
401388 )
402-
403- old_cache_key = run .compute_cache_key ()
404- new_cache_key = new_run .compute_cache_key ()
405- print (f"[CONFIG DEBUG] old cache_key: { old_cache_key } " )
406- print (f"[CONFIG DEBUG] new cache_key: { new_cache_key } " )
407- print (f"[CONFIG DEBUG] cache keys equal: { old_cache_key == new_cache_key } " )
408-
409389 self .runs_registry .add_run (new_run )
410390
411391 self .state .runs_to_compare = [
@@ -425,10 +405,7 @@ def _remove_pending_cache_key(self, cache_key: str):
425405 ]
426406
427407 async def _execute_run_decision (self , run_id : str ):
428- print (f"[EXEC DEBUG] _execute_run_decision called with run_id: { run_id } " )
429-
430408 if self ._is_probe_edited (run_id ):
431- print ("[EXEC DEBUG] probe was edited, creating new probe..." )
432409 new_probe_id = self ._create_edited_probe_for_run (run_id )
433410 if not new_probe_id :
434411 return
@@ -444,19 +421,13 @@ async def _execute_run_decision(self, run_id: str):
444421 ]
445422 run_id = updated_run .id
446423
447- is_config_edited = self ._is_config_edited (run_id )
448- print (f"[EXEC DEBUG] is_config_edited: { is_config_edited } " )
449-
450- if is_config_edited :
451- print ("[EXEC DEBUG] config was edited, creating new run..." )
424+ if self ._is_config_edited (run_id ):
452425 edited_run_id = self ._create_run_with_edited_config (run_id )
453426 if not edited_run_id :
454427 return
455428 run_id = edited_run_id
456- print (f"[EXEC DEBUG] new run_id after config edit: { run_id } " )
457429
458430 cache_key = self .state .runs .get (run_id , {}).get ("cache_key" )
459- print (f"[EXEC DEBUG] cache_key from state: { cache_key } " )
460431
461432 with self .state :
462433 self ._add_pending_cache_key (cache_key )
0 commit comments