Skip to content

Commit 7e55280

Browse files
Deal correctly with OOM Exceptions
Signed-off-by: Lehmann_Fabian <fabian.lehmann@informatik.hu-berlin.de>
1 parent f1a7d8a commit 7e55280

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plugins/nf-cws/src/main/nextflow/cws/k8s/CWSK8sTaskHandler.groovy

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import groovy.transform.CompileStatic
55
import groovy.util.logging.Slf4j
66
import nextflow.cws.CWSConfig
77
import nextflow.cws.SchedulerClient
8+
import nextflow.exception.ProcessRetryableException
89
import nextflow.executor.BashWrapperBuilder
910
import nextflow.extension.GroupKey
1011
import nextflow.file.FileHolder
@@ -198,7 +199,9 @@ class CWSK8sTaskHandler extends K8sTaskHandler {
198199
try {
199200
return super.checkIfRunning()
200201
} catch ( Exception e) {
201-
log.error("Error checking if task is running", e)
202+
if ( e instanceof ProcessRetryableException ) {
203+
throw new RuntimeException( "Exception while checking if task is running", e )
204+
}
202205
throw e
203206
}
204207
}

0 commit comments

Comments
 (0)