From 051cf859c1600b363a91daeb62fbb810621ea198 Mon Sep 17 00:00:00 2001 From: Jiradet Ounjai Date: Fri, 24 Nov 2023 13:52:09 +0700 Subject: [PATCH] make format and add micro_experiment flag in test_data --- experiment/scheduler.py | 6 +++--- experiment/test_data/experiment-config.yaml | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/experiment/scheduler.py b/experiment/scheduler.py index 2589b7571..2bd999874 100644 --- a/experiment/scheduler.py +++ b/experiment/scheduler.py @@ -729,7 +729,7 @@ def _start_trial(trial: TrialProxy, experiment_config: dict, cpuset=None): _initialize_logs(experiment_config['experiment']) logger.info('Start trial %d.', trial.id) started = create_trial_instance(trial.fuzzer, trial.benchmark, trial.id, - experiment_config, trial.preemptible, + experiment_config, trial.preemptible, cpuset, trial.trial_group_num) if started: trial.time_started = datetime_now() @@ -791,11 +791,11 @@ def render_startup_script_template( # pylint: disable=too-many-arguments def create_trial_instance( # pylint: disable=too-many-arguments fuzzer: str, benchmark: str, - trial_id: int, + trial_id: int, experiment_config: dict, preemptible: bool, cpuset=None, - trial_group_num: int=0) -> bool: + trial_group_num: int = 0) -> bool: """Create or start a trial instance for a specific trial_id,fuzzer,benchmark.""" instance_name = experiment_utils.get_trial_instance_name( diff --git a/experiment/test_data/experiment-config.yaml b/experiment/test_data/experiment-config.yaml index 4cecd0e6e..deabcee9a 100644 --- a/experiment/test_data/experiment-config.yaml +++ b/experiment/test_data/experiment-config.yaml @@ -40,3 +40,4 @@ measurers_cpus: null runner_num_cpu_cores: 1 runner_machine_type: 'n1-standard-1' private: false +micro_experiment: false \ No newline at end of file