Skip to content

Commit

Permalink
0 7 3 catch exceptions (#151)
Browse files Browse the repository at this point in the history
Don't let NextFlow die silently.
  • Loading branch information
drernie authored Oct 16, 2023
1 parent 888f4f4 commit b9d5c04
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [0.7.3] 2023-10-16a

- Catch and log exception on push failure

## [0.7.2] 2023-10-16

- Throw exceptions on push failure
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ From the command-line, do, e.g.:

```bash
# export NXF_VER=23.04.3
export NXF_PLUGINS_TEST_REPOSITORY=https://github.com/quiltdata/nf-quilt/releases/download/0.7.2/nf-quilt-0.7.2-meta.json
nextflow run main.nf -plugins [email protected].2
export NXF_PLUGINS_TEST_REPOSITORY=https://github.com/quiltdata/nf-quilt/releases/download/0.7.3/nf-quilt-0.7.3-meta.json
nextflow run main.nf -plugins [email protected].3
```

For Tower, you can use the "Pre-run script" to set the environment variables.
Expand Down
7 changes: 6 additions & 1 deletion plugins/nf-quilt/src/main/nextflow/quilt/QuiltProduct.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,12 @@ ${nextflow}
log.debug("setupReadme: $text")
List<Map> quilt_summarize = setupSummarize()
log.debug("setupSummarize: $quilt_summarize")
pkg.push(msg, meta)
try {
pkg.push(msg, meta)
}
catch (Exception e) {
log.error("publish failed: ${e.getMessage()}\n${e}", pkg.meta)
}
print("SUCCESS: $pkg\n")
}

Expand Down
2 changes: 1 addition & 1 deletion plugins/nf-quilt/src/resources/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Manifest-Version: 1.0
Plugin-Class: nextflow.quilt.QuiltPlugin
Plugin-Id: nf-quilt
Plugin-Version: 0.7.2
Plugin-Version: 0.7.3
Plugin-Provider: Quilt Data
Plugin-Requires: >=22.10.6

0 comments on commit b9d5c04

Please sign in to comment.