@@ -955,13 +955,13 @@ def determine_best_candidate(
955955 base_trace_id = self .get_trace_id (exp_type ),
956956 line_profiler_results = original_code_baseline .line_profile_results ["str_out" ],
957957 model_distribution = MODEL_DISTRIBUTION_LP_EFFECTIVE ,
958+ executor = self .executor ,
958959 experiment_metadata = ExperimentMetadata (
959960 id = self .experiment_id , group = "control" if exp_type == "EXP0" else "experiment"
960961 )
961962 if self .experiment_id
962963 else None ,
963964 sequence_offset = self .optimize_calls_count ,
964- executor = self .executor ,
965965 )
966966
967967 processor = CandidateProcessor (
@@ -1393,10 +1393,10 @@ def generate_optimizations(
13931393 read_only_context_code ,
13941394 self .function_trace_id [:- 4 ] + "EXP0" if run_experiment else self .function_trace_id ,
13951395 MODEL_DISTRIBUTION_EFFECTIVE ,
1396+ self .executor ,
13961397 ExperimentMetadata (id = self .experiment_id , group = "control" ) if run_experiment else None ,
13971398 is_async = self .function_to_optimize .is_async ,
13981399 sequence_offset = N_TESTS_TO_GENERATE_EFFECTIVE ,
1399- executor = self .executor ,
14001400 )
14011401
14021402 future_references = self .executor .submit (
@@ -1418,10 +1418,10 @@ def generate_optimizations(
14181418 read_only_context_code ,
14191419 self .function_trace_id [:- 4 ] + "EXP1" ,
14201420 MODEL_DISTRIBUTION_EFFECTIVE ,
1421+ self .executor ,
14211422 ExperimentMetadata (id = self .experiment_id , group = "experiment" ),
14221423 is_async = self .function_to_optimize .is_async ,
14231424 sequence_offset = N_TESTS_TO_GENERATE_EFFECTIVE ,
1424- executor = self .executor ,
14251425 )
14261426 futures .append (future_candidates_exp )
14271427
0 commit comments