Skip to content

Commit

Permalink
ci: move check_max for cpus/memory to prod config
Browse files Browse the repository at this point in the history
  • Loading branch information
kelly-sovacool committed Sep 7, 2023
1 parent a777395 commit decf226
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ process {
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]

cpus = { check_max( 1 * task.attempt, 'cpus' ) }
memory = { check_max( 6.8.GB * task.attempt, 'memory' ) }
time = { check_max( 4.h * task.attempt, 'time' ) }
errorStrategy = 'finish'

}
4 changes: 4 additions & 0 deletions conf/production.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ Different resource requirements for production vs stub run
https://github.com/nextflow-io/nextflow/discussions/2094
*/
process {
cpus = { check_max( 1 * task.attempt, 'cpus' ) }
memory = { check_max( 7.GB * task.attempt, 'memory' ) }
time = { check_max( 4.h * task.attempt, 'time' ) }

withName: 'INPUT_CHECK:SAMPLESHEET_CHECK' {
publishDir = [
path: { "${params.outdir}/pipeline_info" },
Expand Down

0 comments on commit decf226

Please sign in to comment.