process { withName : "STAR_ALIGN" { memory = 36.GB } withLabel:process_high { cpus = { check_max( 16 * task.attempt, 'cpus' ) } memory = { check_max( 60.GB * task.attempt, 'memory' ) } time = { check_max( 16.h * task.attempt, 'time' ) } } }