From 17ec6c96dd85ea7703dd1ab583659b3039c17b35 Mon Sep 17 00:00:00 2001 From: Paolo Di Tommaso Date: Sat, 13 Jul 2024 15:51:26 +0200 Subject: [PATCH] Fix ProcessUnrecoverableException detection Signed-off-by: Paolo Di Tommaso --- .../src/main/groovy/nextflow/processor/TaskProcessor.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nextflow/src/main/groovy/nextflow/processor/TaskProcessor.groovy b/modules/nextflow/src/main/groovy/nextflow/processor/TaskProcessor.groovy index 73cbc9de79..f72d5124f1 100644 --- a/modules/nextflow/src/main/groovy/nextflow/processor/TaskProcessor.groovy +++ b/modules/nextflow/src/main/groovy/nextflow/processor/TaskProcessor.groovy @@ -1139,7 +1139,7 @@ class TaskProcessor { final action = task.config.getErrorStrategy() // retry is not allowed when the script cannot be compiled or similar errors - if( error instanceof ProcessUnrecoverableException ) { + if( error instanceof ProcessUnrecoverableException || error.cause instanceof ProcessUnrecoverableException ) { return !action.soft ? action : TERMINATE }