nextflow icon indicating copy to clipboard operation
nextflow copied to clipboard

No re-submit despite errorStrategy 'retry'

Open bosterholz opened this issue 10 years ago • 4 comments

Hi,

my process code looks like this:

process getFasta {

    cpus 4
    time '30m'
    memory '4 GB'
    errorStrategy 'retry'
    maxRetries 4

    input:
    val contigLine from uniq_lines

    output:
    file 'uniq_out'
    file 'cut_faa'

    script:
    """
    #!/bin/sh
    $PYTHON ${baseDir}/scripts/getFasta.py --i "${contigLine}" --g "${genomeFaa}" --b "$baseDir"
    """  

}

some times this process fails and should be re-submitted. But when I look at the .log file, that didn't happen. What did I do wrong ?

.nextflow.log.txt trace.csv.txt

bosterholz avatar Jan 19 '16 14:01 bosterholz

Actually the log file shows this line:

:
[5f/be454a] Re-submitted process > getFasta (10)

Thus it retries to execute it again. However it's true that it should try execute it more times, not only 2.

Do you set the maxErrors in a nextflow configuration file?

pditommaso avatar Jan 19 '16 15:01 pditommaso

No, the documentation said that the maxErrors default value should be three. The above case was the first time that I ever saw him re-submit. So, I always thought that three should be enough because he should try at least one additional time. I launched a run with process.maxErrors = 10 just now. If that was the problem, it would be great.

bosterholz avatar Jan 20 '16 09:01 bosterholz

You can even disable the maxErrors limit setting it to -1

pditommaso avatar Jan 20 '16 09:01 pditommaso

I'm assuming that you have solved the problem. Feel free to reopen this issue if it is not the case.

pditommaso avatar Jan 21 '16 08:01 pditommaso