Remove cancelled layers from processors

This commit is contained in:
Michał Zieliński
2025-05-29 11:48:07 +02:00
parent d4044aa7b3
commit 72c6ff73ac
11 changed files with 28 additions and 26 deletions

View File

@@ -25,7 +25,7 @@ public class T1R3Processor(
var processedLayer = db.Layers
.Where(x => x.ParentId == processWorker.Id
&& !x.IsDeleted)
&& !x.IsDeleted && !x.IsCancelled)
.OrderByDescending(x => x.CreatedAt)
.FirstOrDefault();
@@ -55,7 +55,7 @@ public class T1R3Processor(
string pattern = @$"^L\d+-P-{year}/\d+-{source}-T5$";
var dataSources = db.Layers
.Where(x => !x.IsDeleted)
.Where(x => !x.IsDeleted && !x.IsCancelled)
.Include(layer => layer.Records!)
.AsNoTracking()
.AsEnumerable()