fix(analysis): one failed sequence is the job's error as logged; workers never fault while stopping
"1 sequenze su 3" read wrong in Italian: a single failure now reports its own line (title and reason); the count is kept for two or more. A worker whose job could not be finished while the engine stops logs it instead of faulting, so disposing the engine never throws. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
4 files changed
+10
-6
No files matched your search
@@ -127,7 +127,7 @@ public sealed class AnalysisJobTests(TestContext context)
|
||||
|
||||
var job = await fx.EnqueueAsync(ProcessingJobs.LightAnalysis([a.Id, b.Id, c.Id]));
|
||||
var failed = await fx.WaitForAsync(job.Id, JobState.Failed);
|
||||
Assert.Equal(Loc.L("Errors.Analysis.Failed", 1, 3), failed.Error);
|
||||
Assert.True(failed.Error!.StartsWith(Loc.L("Advisor.Log.Failed", b.DisplayTitle, string.Empty), StringComparison.Ordinal), failed.Error);
|
||||
Assert.Equal("3;1", failed.Checkpoint);
|
||||
Assert.SequenceEqual([true, false, true], await AnalysedAsync(fx, a, b, c));
|
||||
|
||||
|
||||
Reference in new issue
Block a user