Skip to content

Commit

Permalink
Merge pull request #510 from drpatelh/dsl2
Browse files Browse the repository at this point in the history
Fix awsbatch assert issue
  • Loading branch information
drpatelh authored Nov 24, 2020
2 parents 3d254ee + b236d2e commit 9b54e51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Enhancements & fixes

* Updated pipeline template to nf-core/tools `1.12`
* [[#500](https://github.com/nf-core/rnaseq/issues/500), [#509](https://github.com/nf-core/rnaseq/issues/509)] - Error with AWS batch params

## [[2.0](https://github.com/nf-core/rnaseq/releases/tag/2.0)] - 2020-11-12

Expand Down
6 changes: 3 additions & 3 deletions lib/Checks.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ class Checks {

static void aws_batch(workflow, params) {
if (workflow.profile.contains('awsbatch')) {
assert !params.awsqueue || !params.awsregion : "Specify correct --awsqueue and --awsregion parameters on AWSBatch!"
assert (params.awsqueue && params.awsregion) : "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
assert !params.outdir.startsWith('s3:') : "Outdir not on S3 - specify S3 Bucket to run on AWSBatch!"
assert params.outdir.startsWith('s3:') : "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.
assert params.tracedir.startsWith('s3:') : "Specify a local tracedir or run without trace! S3 cannot be used for tracefiles."
assert !params.tracedir.startsWith('s3:') : "Specify a local tracedir or run without trace! S3 cannot be used for tracefiles."
}
}

Expand Down

0 comments on commit 9b54e51

Please sign in to comment.