Selective log.info commands when a process using storeDir is run vs skipped

I am using a pre-workflow to download large databases. One such process takes 50 mins so I would like to warn users with a log.info kind of message. But I am cacheing the downloaded db using the storeDir directive so the download happens only once and is stored in a shared/external directory outside the nextflow work dirs.

Is there a neat way to display log.info commands to the terminal when running the nextflow workflow so they display only when the process starts running?

  • I could add echo messages within the process but I am trying to see if there is a better method that prints to terminal rather than one that is fed into the processes’ .command.log file.

Thanks for your thoughts on this!

Does the debug process directive do what you want? Process reference — Nextflow documentation

Thanks for this. I think a debug with a beforeScript included in my modules.config can allow this to work without changing the modules!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.