Enum MailAccountRunPhase
- Assembly
- MailFathom.Application.dll
Where one account's supervisor is in the loop that runs it.
public enum MailAccountRunPhase
Fields
NotStarted = 0No run of this account has begun in this process, which is what an account this replica holds reads as until its first one starts, and what an account no replica currently holds reads as too.
Running = 3The account is running: it holds a slot and its folders are being synchronized.
SupervisedElsewhere = 4Another replica of this deployment holds the account, so no loop here runs it and the supervision beside this phase names which one does.
WaitingForNextRun = 1The account has finished a run and is waiting out the delay before its next one.
WaitingForRunSlot = 2The account is ready to run and is waiting for one of the slots that bound how many accounts run at once.
Remarks
The three working values are what an operator has to tell apart before any count means anything: an account that is
fetching mail now, one that is ready to and is waiting for a slot behind other accounts, and one that has finished
and is waiting out the pause its last run chose. Reporting the last two alike would make a deployment bounded by
MaxConcurrentAccounts look idle, which is the reading a status surface exists to prevent.
Three of the five describe a loop in the process that answered, and the other two describe an account no loop here is running. They are apart because the remedies are opposite: an account supervised on another replica is working and is read about there, and one no replica holds is the deployment having nobody fetching that mailbox.