nextflow-io/nextflow

Add error strategy shortcuts

Open

#563 建立於 2018年1月10日

在 GitHub 查看
 (11 留言) (0 反應) (0 負責人)Groovy (784 fork)batch import
good first issue

倉庫指標

Star
 (3,382 star)
PR 合併指標
 (平均合併 16天 9小時) (30 天內合併 54 個 PR)

描述

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.

貢獻者指南