From 18bb5fe33182ef96070d84160a08886850d3a1de Mon Sep 17 00:00:00 2001 From: pfurio Date: Wed, 13 Nov 2024 12:17:20 +0100 Subject: [PATCH] analysis: fix ToolRunner to get proper toolId, #TASK-6445 --- .../java/org/opencb/opencga/analysis/tools/ToolRunner.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opencga-analysis/src/main/java/org/opencb/opencga/analysis/tools/ToolRunner.java b/opencga-analysis/src/main/java/org/opencb/opencga/analysis/tools/ToolRunner.java index 4a1dd9cf02..14431730c8 100644 --- a/opencga-analysis/src/main/java/org/opencb/opencga/analysis/tools/ToolRunner.java +++ b/opencga-analysis/src/main/java/org/opencb/opencga/analysis/tools/ToolRunner.java @@ -105,7 +105,8 @@ public ExecutionResult execute(Job job, String token) throws CatalogException, T * @throws ToolException if the execution fails */ public ExecutionResult execute(Job job, Path outDir, String token) throws CatalogException, ToolException { - return execute(job.getTool().getId(), new ObjectMap(job.getParams()), outDir, job.getId(), job.isDryRun(), token); + String toolId = ToolFactory.getToolId(job.getType(), job.getTool()); + return execute(toolId, new ObjectMap(job.getParams()), outDir, job.getId(), job.isDryRun(), token); } /**