Pull request #444: RED-4269: Do not schedule deleted files
Merge in RED/persistence-service from RED-4269 to master * commit '675275c20acfed597725794e902f1d79a03707cd': RED-4269: Do not schedule deleted files
This commit is contained in:
commit
e340e77b87
@ -180,7 +180,8 @@ public interface FileRepository extends JpaRepository<FileEntity, String> {
|
||||
|
||||
@Query("select f from FileEntity f join DossierEntity d on d.id = f.dossierId where f.workflowStatus <> 'APPROVED' and f.excludedFromAutomaticAnalysis = false " +
|
||||
"and ( f.processingStatus = 'PROCESSED' or f.processingStatus = 'UNPROCESSED' or f.processingStatus = 'ERROR' )" +
|
||||
"and d.softDeletedTime is null and d.hardDeletedTime is null and d.archivedTime is null ")
|
||||
"and d.softDeletedTime is null and d.hardDeletedTime is null and d.archivedTime is null " +
|
||||
"and f.deleted is null and f.hardDeletedTime is null")
|
||||
List<FileEntity> getAllRelevantStatusesForReanalysisScheduler();
|
||||
|
||||
@Modifying(clearAutomatically = true)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user