Skip to content

What is the practical difference between -preview and -stub-run #6556

@trym-b

Description

@trym-b

Hi

One of the issues we are facing is very long running workflows, which can run for hours or days. So when we are making changes to our nextflow workflow signatures, we would like to get more timely feedback from our automatic nextflow runs in our continuous integration system.

So we wondered if there is some kind of dry-run option for evaluating these signatures and call sites, and we found 2 options: nextflow run -preview and nextflow run -stub-run.

For the -preview flag, this is the description: Run the workflow script skipping the execution of all processes.
For the -stub-run flag, this is the description: Whether to replace scripts with command stubs when executing the run.

When running with either of these options, the total runtime of one of the very time-consuming workflows becomes 18 seconds. So in practice, what is the difference between these options? Will our millage vary if we go for -preview vs -stub-run?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions