From 39368de4d7016b493e23d0e271442e357ffabddb Mon Sep 17 00:00:00 2001 From: Abhinav Sharma Date: Wed, 17 Jul 2024 16:07:18 +0200 Subject: [PATCH] Do not throw exception upon submission failures --- .../src/main/nextflow/nomad/executor/NomadService.groovy | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/nf-nomad/src/main/nextflow/nomad/executor/NomadService.groovy b/plugins/nf-nomad/src/main/nextflow/nomad/executor/NomadService.groovy index 88ee24b..12657a5 100644 --- a/plugins/nf-nomad/src/main/nextflow/nomad/executor/NomadService.groovy +++ b/plugins/nf-nomad/src/main/nextflow/nomad/executor/NomadService.groovy @@ -117,12 +117,10 @@ class NomadService implements Closeable { try { JobRegisterResponse jobRegisterResponse = jobsApi.registerJob(jobRegisterRequest, config.jobOpts().region, config.jobOpts().namespace, null, null) jobRegisterResponse.evalID - log.debug("[NOMAD] Submitted ${job.name}") - } catch (Throwable e) { - throw new ProcessSubmitException("[NOMAD] Failed to submit ${job.name} -- Cause: ${e.message ?: e}", e) + } catch (Exception e) { + log.debug ("[NOMAD] Failed to submit ${job.name} -- Cause: ${e.message ?: e}", e) } - } TaskGroup createTaskGroup(TaskRun taskRun, List args, Map env) {