fix(engine): discard cancelled pipeline results from uncooperative engines

This commit is contained in:
aj
2026-09-29 10:31:23 -04:00
parent c914d2bbd9
commit 7aeb636ca2
2 changed files with 17 additions and 0 deletions
+2
View File
@@ -115,6 +115,7 @@ public static class NestPipeline
engine.Solve(job, progress, token)
?? throw new InvalidOperationException($"Engine '{engineName}' returned no result.");
var solveTime = clock.Elapsed;
token.ThrowIfCancellationRequested();
clock.Restart();
var violations = Validate(job, raw, drawingsByPartId);
@@ -128,6 +129,7 @@ public static class NestPipeline
))
.ToList();
token.ThrowIfCancellationRequested();
return new NestPipelineResult(
engineName,
job,