From 00376aa34a5305845be187b947fb2a19fe4d1f34 Mon Sep 17 00:00:00 2001 From: Paolo Di Tommaso Date: Thu, 23 Jan 2025 16:58:48 +0100 Subject: [PATCH] Remove redundant exception handling [ci fast] Signed-off-by: Paolo Di Tommaso --- .../src/main/groovy/nextflow/Session.groovy | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/modules/nextflow/src/main/groovy/nextflow/Session.groovy b/modules/nextflow/src/main/groovy/nextflow/Session.groovy index 08c1488382..5b2eee8e71 100644 --- a/modules/nextflow/src/main/groovy/nextflow/Session.groovy +++ b/modules/nextflow/src/main/groovy/nextflow/Session.groovy @@ -16,14 +16,12 @@ package nextflow - import java.nio.file.Files import java.nio.file.Path import java.nio.file.Paths import java.util.concurrent.ConcurrentLinkedQueue import java.util.concurrent.ExecutorService import java.util.concurrent.Executors -import java.util.concurrent.TimeoutException import com.google.common.hash.HashCode import groovy.transform.CompileDynamic @@ -690,17 +688,8 @@ class Session implements ISession { try { log.trace "Session > destroying" // shutdown thread pools - try { - finalizePoolManager?.shutdownOrAbort(aborted,this) - publishPoolManager?.shutdownOrAbort(aborted,this) - } - catch( TimeoutException e ) { - final ignoreErrors = config.navigate('workflow.output.ignoreErrors', false) - if( !ignoreErrors ) - throw new AbortOperationException("Timed out while waiting to publish outputs") - else - log.warn e.message - } + finalizePoolManager?.shutdownOrAbort(aborted,this) + publishPoolManager?.shutdownOrAbort(aborted,this) // invoke shutdown callbacks shutdown0() log.trace "Session > after cleanup"