diff --git a/src/config/labels.config b/src/config/labels.config index b3add51..9ea88b1 100644 --- a/src/config/labels.config +++ b/src/config/labels.config @@ -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 } @@ -39,4 +41,3 @@ process { System.exit(1) } } -}