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
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