Merge branch 'RED-7384' into 'release/2.349.x'

RED-7384: migration fixes

See merge request redactmanager/persistence-service!402
This commit is contained in:
Kilian Schüttler 2024-03-22 11:05:12 +01:00
commit 24290dd60c

View File

@ -116,9 +116,10 @@ public class SaasMigrationService implements TenantSyncService {
log.info("Added {} documents for tenant {} to Layout-Parsing queue for saas migration", numberOfFiles, TenantContext.getTenantId());
if (numberOfFiles == 0) {
finalizeMigration();
}
// if (numberOfFiles == 0) {
// finalizeMigration(); // AutomaticAnalysisJob should be re-enabled by re-starting the persistence service pod after a rule change
// This ensures no analysis will happen with outdated rules
// }
}
@ -236,7 +237,8 @@ public class SaasMigrationService implements TenantSyncService {
saasMigrationStatusPersistenceService.updateStatus(fileId, SaasMigrationStatus.FINISHED);
log.info("AnnotationIds migration finished for saas migration for tenant {} dossier {} and file {}", TenantContext.getTenantId(), dossierId, fileId);
finalizeMigration();
// finalizeMigration(); // AutomaticAnalysisJob should be re-enabled by re-starting the persistence service pod after a rule change
// This ensures no analysis will happen with outdated rules
}