Skip to content

Commit

Permalink
Update main.nf
Browse files Browse the repository at this point in the history
Mini fix for awsbatch stuff as found in nf-core/tools#447
  • Loading branch information
apeltzer authored Nov 6, 2019
1 parent d75025f commit ee16a2a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ if( !(workflow.runName ==~ /[a-z]+_[a-z]+/) ){
}


if( workflow.profile == 'awsbatch') {
// AWSBatch sanity checking
if (!params.awsqueue || !params.awsregion) exit 1, "Specify correct --awsqueue and --awsregion parameters on AWSBatch!"
// Check outdir paths to be S3 buckets if running on AWSBatch
// related: https://github.com/nextflow-io/nextflow/issues/813
if (!params.outdir.startsWith('s3:')) exit 1, "Outdir not on S3 - specify S3 Bucket to run on AWSBatch!"
// Prevent trace files to be stored on S3 since S3 does not support rolling files.
if (workflow.tracedir.startsWith('s3:')) exit 1, "Specify a local tracedir or run without trace! S3 cannot be used for tracefiles."
if (workflow.profile.contains('awsbatch')) {
// AWSBatch sanity checking
if (!params.awsqueue || !params.awsregion) exit 1, "Specify correct --awsqueue and --awsregion parameters on AWSBatch!"
// Check outdir paths to be S3 buckets if running on AWSBatch
// related: https://github.com/nextflow-io/nextflow/issues/813
if (!params.outdir.startsWith('s3:')) exit 1, "Outdir not on S3 - specify S3 Bucket to run on AWSBatch!"
// Prevent trace files to be stored on S3 since S3 does not support rolling files.
if (params.tracedir.startsWith('s3:')) exit 1, "Specify a local tracedir or run without trace! S3 cannot be used for tracefiles."
}

// Stage config files
Expand Down

0 comments on commit ee16a2a

Please sign in to comment.