Skip to content

Commit 8fc4a7b

Browse files
committed
Fix bug where workflow can hang if the email parameter is set.
This fix moves all queue channel operations out of the onComplete block and into the main workflow.
1 parent 4ebae21 commit 8fc4a7b

File tree

1 file changed

+3
-1
lines changed
  • subworkflows/local/utils_nfcore_sarek_pipeline

1 file changed

+3
-1
lines changed

subworkflows/local/utils_nfcore_sarek_pipeline/main.nf

+3-1
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ workflow PIPELINE_COMPLETION {
183183
main:
184184
summary_params = paramsSummaryMap(workflow, parameters_schema: "nextflow_schema.json")
185185

186+
def multiqc_report_list = multiqc_report.toList()
187+
186188
//
187189
// Completion email and summary
188190
//
@@ -195,7 +197,7 @@ workflow PIPELINE_COMPLETION {
195197
plaintext_email,
196198
outdir,
197199
monochrome_logs,
198-
multiqc_report.toList()
200+
multiqc_report_list.getVal()
199201
)
200202
}
201203

0 commit comments

Comments
 (0)