File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
plugins/nf-cws/src/main/nextflow/cws/k8s Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import groovy.transform.CompileStatic
55import groovy.util.logging.Slf4j
66import nextflow.cws.CWSConfig
77import nextflow.cws.SchedulerClient
8+ import nextflow.exception.ProcessRetryableException
89import nextflow.executor.BashWrapperBuilder
910import nextflow.extension.GroupKey
1011import 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 }
You can’t perform that action at this time.
0 commit comments