nextflow-io/nextflow

Add error strategy shortcuts

Open

#563 aberto em 10 de jan. de 2018

Ver no GitHub
 (11 comments) (0 reactions) (0 assignees)Groovy (784 forks)batch import
good first issue

Métricas do repositório

Stars
 (3.382 stars)
Métricas de merge de PR
 (Mesclagem média 16d 9h) (54 fundiu PRs em 30d)

Description

The errorStrategy 'retry' implicitly terminates the execution when a task exceeds the max number of allowed retries.

There are use cases in which the user wants to ignore of finish the workflow execution. This is possible by using a dynamic error strategy (closure). However it would be useful to provide two new synthetic error strategies to simplifies the above use case, such as:

  • retryThenIgnore: task execution is retried in case of error, if the errors exceed the maximum number allowed the task is ignored by applying the ignore error strategy.
  • retryThenFinish: task execution is retried in case of error, if the errors exceed the maximum number allowed the execution is stopped by applying the finish error strategy.

Guia do colaborador