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
@@ -220,9 +220,10 @@ public sealed class JobEngine : IAsyncDisposable
|
||||
{
|
||||
await RunAsync(job, shutdown).ConfigureAwait(false);
|
||||
}
|
||||
catch (Exception ex) when (!shutdown.IsCancellationRequested)
|
||||
catch (Exception ex)
|
||||
{
|
||||
// The job's final state could not be stored; it stays running and is requeued at the next start.
|
||||
// The job's final state could not be stored (also while stopping): it stays running and is requeued at the
|
||||
// next start. The worker never faults, so disposing the engine never throws.
|
||||
Log.Error("jobs", $"{job.Kind} job {job.Id} could not be finished", ex);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user