Merge branch 'RED-9145' into 'master'
RED-9145: revert accidental changes Closes RED-9145 See merge request redactmanager/persistence-service!518
This commit is contained in:
commit
46123e179d
@ -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) {
|
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);
|
fileStatusProcessingUpdateService.analysisSuccessful(dossierId, fileId, analyzeResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -43,8 +43,11 @@ public class FileStatusProcessingUpdateService {
|
|||||||
case SURROUNDING_TEXT_ANALYSIS:
|
case SURROUNDING_TEXT_ANALYSIS:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
log.info("Analysis Successful for dossier {} and file {}, Attempt to update status: {}", dossierId, fileId, 0);
|
retryTemplate.execute(retryContext -> {
|
||||||
fileStatusService.setStatusSuccessful(dossierId, fileId, analyzeResult);
|
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()) {
|
if (!analyzeResult.isWasReanalyzed()) {
|
||||||
indexingService.addToIndexingQueue(IndexMessageType.INSERT, dossier.getDossierTemplateId(), dossierId, fileId, 2);
|
indexingService.addToIndexingQueue(IndexMessageType.INSERT, dossier.getDossierTemplateId(), dossierId, fileId, 2);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user