Class JobAttemptFailure
- Namespace
- MailFathom.Application.Jobs.Execution
- Assembly
- MailFathom.Application.dll
What one failed attempt was classified as, what was written against the job, and what became of it.
public sealed record JobAttemptFailure : IEquatable<JobAttemptFailure>
- Inheritance
-
JobAttemptFailure
- Implements
- Inherited Members
Remarks
The exception a handler raised is deliberately not here. A handler works on mail, so a library's message may quote a subject, an address, or a header, and anything holding that exception would put it into every log line reporting the attempt. Record is the narrowed form — a type name and a stable code — and it is what both the row and the report carry. A handler that wants its own failure diagnosed in full is the one place that knows what in it is safe to write, so it logs that itself.
Constructors
- JobAttemptFailure(JobFailureRecord, JobFailureDisposition)
What one failed attempt was classified as, what was written against the job, and what became of it.
Properties
- Disposition
Whether the job goes back to the queue or is terminal.
- NextAttemptAt
Gets the instant the job becomes claimable again, and null when it was dead-lettered.
- Record
The verdict and the operator-safe reason the job's row now keeps.