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

Fail to send the completion email #3080

Open
HaidYi opened this issue Jul 25, 2024 · 0 comments
Open

Fail to send the completion email #3080

HaidYi opened this issue Jul 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@HaidYi
Copy link

HaidYi commented Jul 25, 2024

Description of the bug

I created a new project via nf-core create (v2.14.1) and run the template pipeline with

nextflow run . -profile test,conda --outdir results --email [xxx.email.com](http://xxx.email.com/)

command on both nextflow 24.4 and 23.4 but the email cannot be delivered. I manually tuned the code and find that sendmail_html variable has length = 0, so it seems the html render engine (groovy.text.GStringTemplateEngine) has some problems behind.

def max_multiqc_email_size = (params.containsKey('max_multiqc_email_size') ? params.max_multiqc_email_size : 0) as nextflow.util.MemoryUnit
def smail_fields           = [ email: email_address, subject: subject, email_txt: email_txt, email_html: email_html, projectDir: "${workflow.projectDir}", mqcFile: mqc_report, mqcMaxSize: max_multiqc_email_size.toBytes() ]
def sf                     = new File("${workflow.projectDir}/assets/sendmail_template.txt")
def sendmail_template      = engine.createTemplate(sf).make(smail_fields)
def sendmail_html          = sendmail_template.toString()

In the meantime, If I created the new project via nf-core v2.8 with the lib directory for addressing the email, there is no such problem.

Command used and terminal output

nextflow run . -profile test,conda --outdir results --email xxx.email.com

System information

Nextflow version: both 23.04.4 and 24.04
Hardware: HPC
Executor: local
Container engine: both conda and singularity
OS: rhel linux-8
Python version: 3.9

@HaidYi HaidYi added the bug Something isn't working label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant