Skip to content

Commit

Permalink
fix: Set Genomics queue memory variable
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Nov 28, 2024
1 parent 01446f0 commit a03e5a6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions conf/utd_ganymede.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ singularity {
}

def membership = "groups".execute().text
def genomics_queue_memory = 28.GB

def select_queue = { memory, cpu ->
if (memory <= 28.GB && cpu <= 16 && membership.contains('genomics')) {
if (memory <= genomics_queue_memory && cpu <= 16 && membership.contains('genomics')) {
return 'genomics,normal'
}
if (memory > 28.GB && memory <= 125.GB && cpu <= 12 && membership.contains('kim')) {
if (memory > genomics_queue_memory && memory <= 125.GB && cpu <= 12 && membership.contains('kim')) {
return 'Kim,128s'
}
if (memory > 28.GB && memory <= 125.GB && cpu <= 16) {
if (memory > genomics_queue_memory && memory <= 125.GB && cpu <= 16) {
return '128s'
}
if (memory <= 250.GB && cpu <= 28) {
Expand Down Expand Up @@ -57,7 +58,7 @@ process {

withLabel:process_medium {
cpus = { 16 * task.attempt }
memory = { 28.GB * task.attempt }
memory = { genomics_queue_memory * task.attempt }
}
}

Expand Down

0 comments on commit a03e5a6

Please sign in to comment.