Skip to content

Commit

Permalink
rearrange allocation function
Browse files Browse the repository at this point in the history
  • Loading branch information
sorelfitzgibbon committed Aug 24, 2023
1 parent 664cfaa commit dd48dfa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions config/custom_schema_types.config
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,17 @@ custom_schema_types {
* Check if given input is valid process list
*/
check_if_process_list = { val, String name ->
if (!custom_schema_types.is_string(val)) {
if (custom_schema_types.is_string(val)) {
if (val.isEmpty()) {
throw new Exception("Empty string specified for ${name}. Please provide valid input.")
}
} else {
try {
custom_schema_types.check_if_list(val, name)
} catch(Exception e) {
throw new Exception("${name} should be either a string or a list. Please provide valid input.")
}
}

if (val.isEmpty()) {
throw new Exception("Empty string specified for ${name}. Please provide valid input.")
}
}

/**
Expand Down
2 changes: 2 additions & 0 deletions config/default.config
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ params {
cache_intermediate_pipeline_steps = false

//max_number_of_parallel_jobs = 1
min_cpus = 1
max_cpus = SysHelper.getAvailCpus()
min_memory = 1.MB
max_memory = SysHelper.getAvailMemory()

// default docker container registry
Expand Down

0 comments on commit dd48dfa

Please sign in to comment.