Skip to content

Commit

Permalink
analysis: avoid tag duplicates, #TASK-6445
Browse files Browse the repository at this point in the history
  • Loading branch information
pfurio committed Sep 19, 2024
1 parent 6c1456b commit 2da90f8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ protected void check() throws Exception {
ObjectMap attributes = new ObjectMap()
.append("WORKFLOW_ID", workflow.getManager().getId())
.append("WORKFLOW_VERSION", workflow.getManager().getVersion());
List<String> tags = new LinkedList<>();
Set<String> tags = new HashSet<>();
tags.add(ID);
tags.add(workflow.getManager().getId().name());
tags.add(workflow.getManager().getId() + ":" + workflow.getManager().getVersion());
tags.add(workflow.getId());
if (CollectionUtils.isNotEmpty(workflow.getTags())) {
tags.addAll(workflow.getTags());
}
updateJobInformation(tags, attributes);
updateJobInformation(new ArrayList<>(tags), attributes);

this.inputBindings = new LinkedList<>();
if (MapUtils.isNotEmpty(nextflowParams.getParams())) {
Expand Down

0 comments on commit 2da90f8

Please sign in to comment.