Skip to content

Commit

Permalink
DMP-4743 Improve automated task - GenerateCaseDocument
Browse files Browse the repository at this point in the history
Changed the job to get the batched ids instead of the batched objects
  • Loading branch information
karen-hedges committed Feb 13, 2025
1 parent 9f89480 commit 4a6c070
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ public void processGenerateCaseDocument(int batchSize) {

OffsetDateTime caseClosedBeforeTimestamp = currentTimeHelper.currentOffsetDateTime().minusDays(caseDocumentGenerationDays);
var casesIdsNeedingCaseDocumentGenerated = caseRepository.findCasesIdsNeedingCaseDocumentGenerated(caseClosedBeforeTimestamp, Limit.of(batchSize));
log.debug("Found {} casesIdsNeedingCaseDocumentGenerated needing case document out of a batch size {}", casesIdsNeedingCaseDocumentGenerated.size(),
batchSize);
log.debug("Found {} cases needing case document out of a batch size {}", casesIdsNeedingCaseDocumentGenerated.size(), batchSize);
for (var courtCaseId : casesIdsNeedingCaseDocumentGenerated) {
try {
singleCaseProcessor.processGenerateCaseDocument(courtCaseId);
Expand Down

0 comments on commit 4a6c070

Please sign in to comment.