Validate the configuration Checks for invalid combinations of options, particularly in walltime config
(&self)
| 32 | /// |
| 33 | /// Checks for invalid combinations of options, particularly in walltime config |
| 34 | fn validate(&self) -> Result<()> { |
| 35 | if let Some(options) = &self.options { |
| 36 | if let Some(walltime) = &options.walltime { |
| 37 | Self::validate_walltime_options(walltime, "root options")?; |
| 38 | } |
| 39 | } |
| 40 | Ok(()) |
| 41 | } |
| 42 | |
| 43 | /// Validate walltime options for conflicting constraints |
| 44 | fn validate_walltime_options(opts: &WalltimeOptions, context: &str) -> Result<()> { |
no outgoing calls