From 9bcd838bdba79c283229cbfde5402fefdbf65be0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cle=CC=81ment=20Doumouro?= Date: Thu, 28 Nov 2024 09:26:22 +0100 Subject: [PATCH] chore: add extras at the top level --- .../icij/datashare/tasks/CreateNlpBatchesFromIndex.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/datashare-app/src/main/java/org/icij/datashare/tasks/CreateNlpBatchesFromIndex.java b/datashare-app/src/main/java/org/icij/datashare/tasks/CreateNlpBatchesFromIndex.java index a97076f8e..562f62fb1 100644 --- a/datashare-app/src/main/java/org/icij/datashare/tasks/CreateNlpBatchesFromIndex.java +++ b/datashare-app/src/main/java/org/icij/datashare/tasks/CreateNlpBatchesFromIndex.java @@ -191,12 +191,13 @@ public User getUser() { } private Map batchTaskArgs() { - return Map.of( + Map args = new HashMap<>(Map.of( "pipeline", this.nlpPipeline.name(), "maxLength", this.maxTextLength, - GROUP_KEY, nlpGroup(this.nlpPipeline), - "extras", pipelineExtras(this.nlpPipeline) - ); + GROUP_KEY, nlpGroup(this.nlpPipeline) + )); + args.putAll(pipelineExtras(this.nlpPipeline)); + return args; } }