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; } }