RED-2363: Fixed no full reprocessing after ocr
This commit is contained in:
parent
ed4db16f6f
commit
0e2e3234e9
@ -221,9 +221,7 @@ public class FileStatusService {
|
||||
}
|
||||
|
||||
var fileAttributes = fileStatus.getFileAttributes();
|
||||
|
||||
setStatusProcessing(fileId);
|
||||
|
||||
|
||||
var analyseRequest = AnalyzeRequest.builder()
|
||||
.dossierId(dossierId)
|
||||
.sectionsToReanalyse(sectionsToReanalyse)
|
||||
@ -240,6 +238,8 @@ public class FileStatusService {
|
||||
|
||||
analyseRequest.setExcludedPages(fileStatus.getExcludedPages());
|
||||
|
||||
setStatusProcessing(fileId);
|
||||
|
||||
try {
|
||||
rabbitTemplate.convertAndSend(MessagingConfiguration.REDACTION_QUEUE, objectMapper.writeValueAsString(analyseRequest), message -> {
|
||||
message.getMessageProperties().setPriority(priority);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user