Skip to content

Commit

Permalink
Fix bug where workflow can hang if the email parameter is set.
Browse files Browse the repository at this point in the history
This fix moves all queue channel operations out of the onComplete block and into the main workflow.
  • Loading branch information
robsyme committed Dec 6, 2024
1 parent 4ebae21 commit 8fc4a7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion subworkflows/local/utils_nfcore_sarek_pipeline/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ workflow PIPELINE_COMPLETION {
main:
summary_params = paramsSummaryMap(workflow, parameters_schema: "nextflow_schema.json")

def multiqc_report_list = multiqc_report.toList()

//
// Completion email and summary
//
Expand All @@ -195,7 +197,7 @@ workflow PIPELINE_COMPLETION {
plaintext_email,
outdir,
monochrome_logs,
multiqc_report.toList()
multiqc_report_list.getVal()
)
}

Expand Down

0 comments on commit 8fc4a7b

Please sign in to comment.