RED-9145: revert accidental changes #518
@ -53,7 +53,6 @@ public class FileStatusProcessingUpdateInternalController implements FileStatusP
|
||||
|
||||
public void analysisSuccessful(@PathVariable(DOSSIER_ID_PARAM) String dossierId, @PathVariable(FILE_ID) String fileId, @RequestBody AnalyzeResult analyzeResult) {
|
||||
|
||||
log.info("Received analysis result {}", analyzeResult);
|
||||
fileStatusProcessingUpdateService.analysisSuccessful(dossierId, fileId, analyzeResult);
|
||||
}
|
||||
|
||||
|
||||
@ -43,8 +43,11 @@ public class FileStatusProcessingUpdateService {
|
||||
case SURROUNDING_TEXT_ANALYSIS:
|
||||
break;
|
||||
default:
|
||||
log.info("Analysis Successful for dossier {} and file {}, Attempt to update status: {}", dossierId, fileId, 0);
|
||||
fileStatusService.setStatusSuccessful(dossierId, fileId, analyzeResult);
|
||||
retryTemplate.execute(retryContext -> {
|
||||
log.info("Analysis Successful for dossier {} and file {}, Attempt to update status: {}", dossierId, fileId, retryContext.getRetryCount());
|
||||
fileStatusService.setStatusSuccessful(dossierId, fileId, analyzeResult);
|
||||
return null;
|
||||
});
|
||||
|
||||
if (!analyzeResult.isWasReanalyzed()) {
|
||||
indexingService.addToIndexingQueue(IndexMessageType.INSERT, dossier.getDossierTemplateId(), dossierId, fileId, 2);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user