Skip to content

Commit

Permalink
Fix validation of runner config options (google#1771)
Browse files Browse the repository at this point in the history
This PR modifies the config file validation to allow to specify
`runner_machine_type` and `runner_num_cpu_cores`.
  • Loading branch information
EliaGeretto authored Mar 15, 2023
1 parent 4883508 commit 653da70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions experiment/run_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ def read_and_validate_experiment_config(config_filename: str) -> Dict:
Requirement(False, bool, False, ''),
'preemptible_runners':
Requirement(False, bool, False, ''),
'runner_machine_type':
Requirement(False, str, True, ''),
'runner_num_cpu_cores':
Requirement(False, int, False, ''),
}

all_params_valid = _validate_config_parameters(config, config_requirements)
Expand Down

0 comments on commit 653da70

Please sign in to comment.