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

Template reports errors though there weren't any #314

Closed
apeltzer opened this issue Apr 11, 2019 · 5 comments
Closed

Template reports errors though there weren't any #314

apeltzer opened this issue Apr 11, 2019 · 5 comments
Assignees
Labels
template nf-core pipeline/component template
Milestone

Comments

@apeltzer
Copy link
Member

[e6/f4ada4] Submitted process > multiqc
WARN: [nf-core/eager] Could not attach MultiQC report to summary email
Warning, pipeline completed, but with errored process(es)
Number of ignored errored process(es) : 0
Number of successfully ran process(es) : 2
[nf-core/eager] Pipeline completed successfully
WARN: To render the execution DAG in the required format it is required to install Graphviz -- See http://www.graphviz.org for more info.

This confuses users as they think something failed. Better to have an expression there to just have the warning there when something fails for real ;-)

@maxibor Can you have a look maybe?

@apeltzer apeltzer added the template nf-core pipeline/component template label Apr 11, 2019
@apeltzer apeltzer added this to the 1.7 milestone May 16, 2019
@drpatelh
Copy link
Member

drpatelh commented May 22, 2019

@pditommaso We currently have this line in the template for the email notification

if (workflow.stats.ignoredCountFmt > 0 && workflow.success) {

However, I believe the variable workflow.stats.ignoredCountFmt is a string which is why we are still getting the above output even if workflow.stats.ignoredCountFmt == 0 and workflow.success == true.

This is fixed by converting that variable to an integer:
if (workflow.stats.ignoredCountFmt.toInteger() > 0 && workflow.success) {

Im just wondering whether this is the safest way to do this because I have seen other instances in the NF repo which will most likely fail the integer conversion:
https://github.com/nextflow-io/nextflow/blob/b49e6d74dae782def6be2b087d06fdd8fa6b9291/modules/nextflow/src/test/groovy/nextflow/trace/WorkflowStatsTest.groovy#L219

@drpatelh
Copy link
Member

if (workflow.stats.ignoredCountFmt != "0" && workflow.success) {

Also works, and avoids the integer conversion.

@maxibor
Copy link
Member

maxibor commented May 22, 2019

Oups, totally missed this one in the middle of the all the other nf-core emails.
New mail filters in place since last week made it pop out again only today with @drpatelh comment ;)
I propose #338 to fix it

@pditommaso
Copy link

The stats structure is defined by this class. Therefore you should use workflow.stats.ignoredCount instead of using the fmt field.

@drpatelh
Copy link
Member

Fixed in #337

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
template nf-core pipeline/component template
Projects
None yet
Development

No branches or pull requests

4 participants