Skip to content

Commit

Permalink
BUG: get_memory function cannot be defined in process config context. (
Browse files Browse the repository at this point in the history
  • Loading branch information
DriesSchaumont authored Apr 26, 2024
1 parent d85bec9 commit a07a9c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/config/labels.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ process {
withLabel: highmem { memory = { get_memory( 50.GB * task.attempt ) } }
withLabel: veryhighmem { memory = { get_memory( 75.GB * task.attempt ) } }

def get_memory(to_compare) {
}

def get_memory(to_compare) {
if (!process.containsKey("maxMemory") || !process.maxMemory) {
return to_compare
}
Expand All @@ -39,4 +41,3 @@ process {
System.exit(1)
}
}
}

0 comments on commit a07a9c0

Please sign in to comment.