Skip to content

Commit

Permalink
DMP-4807 Investigate moving threading in DETS ARM Push to Raw Files
Browse files Browse the repository at this point in the history
Added virtual threads to ARM pushing of raw files
  • Loading branch information
karen-hedges committed Mar 3, 2025
1 parent c887b18 commit c5d1623
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
import uk.gov.hmcts.darts.arm.model.ArchiveRecord;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;


public class ArmBatchItems {
@Getter
private final List<ArmBatchItem> items = new ArrayList<>();
private final List<ArmBatchItem> items = Collections.synchronizedList(new ArrayList<>());

public void add(ArmBatchItem batchItem) {
items.add(batchItem);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ darts:
at-most-for: PT45M
unstructured-to-arm-batch-processor:
max-arm-manifest-items: 100
threads: 30
threads: 10
async-timeout: 90m
dets-to-arm-batch-processor:
max-arm-manifest-items: 100
Expand Down

0 comments on commit c5d1623

Please sign in to comment.