Enum JobExecutionOutcome
- Namespace
- MailFathom.Application.Jobs.Execution
- Assembly
- MailFathom.Application.dll
States how one attempt at one job ended.
public enum JobExecutionOutcome
Fields
HandlerFailed = 1The handler raised, and the failure is recorded against the job.
HandlerMissing = 2No handler is registered for the job's type, so the job is recorded as failed rather than claimed again.
LeaseLost = 5The lease moved to another attempt, so this one wrote nothing about the job.
ReleasedForShutdown = 4The host is stopping, so the lease was given back and the job is claimable immediately.
Succeeded = 0The handler finished and the job is recorded as done.
TimedOut = 3The execution exceeded its configured timeout and was cancelled.
Remarks
The three ways an attempt is stopped from outside are separate members rather than one cancellation, because they mean opposite things to an operator: a shutdown is a deployment and costs the job nothing, a timeout is the job exceeding what it was allowed, and a lost lease means another attempt already owns the work.