Skip to content

Pipeline completed with errors ends with correct exit-code #6758

@mewu3

Description

@mewu3

Don't know if this post is valid format, please let me know if i have to re-edit

New feature

I have noticed that nextflow pipeline exit-code does not match with the actual exit situation, is this a design on purpose? I personally find this rather inconvenient, if i want to have a quick look of the exit state of pipeline , i will have to look at the log thoroughly.
I would really like that the pipeline give an exit-code that match with the exit state, for example:
- "Workflow failed on launch: Launcher error" -> 1
- "Workflow failed on launch: Operation aborted" -> 1
- "Pipeline completed with errors" -> 1
- etc.

Use case

My use case is i have a shell script for retry a failed workflow for at most 3 times, so i have to judge the exit state, if i can't have the correct exit-code recorded, i will have to scramble the log file for key word or key phrases. which i find most unreliable - cause i will have to get to know all the key word

Suggested implementation

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