Class JobHandOnRefusedAtCapacityException
- Namespace
- MailFathom.Application.Jobs
- Assembly
- MailFathom.Application.dll
Indicates that a job could not enqueue the segment carrying the rest of its own work.
public sealed class JobHandOnRefusedAtCapacityException : MailFathomException, ISerializable
- Inheritance
-
JobHandOnRefusedAtCapacityException
- Implements
- Inherited Members
Remarks
A handler that walks more than one attempt's worth of work hands the remainder to a segment of its own, and that hand-on is the only record of where the walk had reached. A queue at its configured depth answers the enqueue with backpressure rather than a job, so an attempt that read the refusal and returned would be recorded as having succeeded while the rest of its work existed nowhere.
It is raised rather than reported as a result because the caller the outcome belongs to is the executor rather than the handler: what the refusal asks for is the same segment attempted again once the queue has drained, which is what ending the attempt produces. It is classified as transient for that reason, and the attempt budget is what stops a queue that never drains from being retried forever.
Constructors
- JobHandOnRefusedAtCapacityException(JobType)
Initializes a new refusal naming the job type whose queue was at its depth.
Properties
- ErrorCode
Gets the stable code identifying this failure to a boundary that must report it without naming a type.
- JobType
Gets the job type the refused segment would have been enqueued under.