Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0 7 3 catch exceptions #151

Merged
merged 2 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

Loading