These are chat archives for nextflow-io/nextflow

3rd
Dec 2016
Trevor Tanner
@tantrev
Dec 03 2016 03:00
When “retrying” a process that had an error, is there any way to force a re-evaluation of the processes’ “script”? I just would like to use conditional logic in my processes’ “script” with respect to task attempt number.
Right now, it seems any conditional logic within the "script" portion of a nextflow process is ignored during re-execution.
Paolo Di Tommaso
@pditommaso
Dec 03 2016 10:15
Nope. Currently is not allowed, manly because process executions are considered idempotent. Having a task to change its behaviour on an error condition, would introduce a dependency on an external state.
Trevor Tanner
@tantrev
Dec 03 2016 10:42
I guess it would just be nice then to be able to specify an “output” for something when it fails. The dependency problem, however, could still be mitigated by confining any external dependencies to within a process. One common use case includes programs that require manual flags when increasing resource requirements (like Q-Chem).
Paolo Di Tommaso
@pditommaso
Dec 03 2016 10:44
I see. You may want to open a feature request on GH, to better track the problem.