Skip to content

Reference

The three priorities

What each number called priority decides, which one is exempt from the brakes, and why faces arrive last.

Three different numbers in this product are called priority, and they answer three different questions.

NumberSet onAnswers
Priority classEvery work item, by whatever produced itWhich kind of work runs first
Priority classThe publicationWhich class its own fan-out is queued as
Sync priorityA recipient, per publicationWhose turn comes up first

A fourth number is called order and is not a priority at all: an audience’s order decides which audience names a person’s folder when several reach them. It has nothing to do with the queue. See Audiences.

Every row in the queue carries an integer, and the integer is what is stored. Higher runs first.

ClassNumberWhat is queued at itA publication may choose it
Pictures5A deferred picture uploadNo
Cleanup10A card in the folder nothing accounts for, and the losers of a duplicate resolutionYes
Reconciliation20What a folder read-back decided to remove, and adoption conflicts held for an answerYes
InitialSync30Nothing in the service assigns it; it exists for a publication that wants its fill to outrank ordinary changesYes
Incremental50A contact that appeared or changed in the sourceYes
Repair70A card found missing, deleted in Outlook, or differing from what it should beYes
SourceIngestion80A card the source deleted, as the delta commits itNo
PrivacyReduction100Clearing restricted fields, sanitising a card on offboarding, removing a folderNo

A deletion arriving from the source outranks an addition arriving in the same delta: taking a contact back is the half with a consequence.

Claiming work is one query, and the class appears in it three times.

  1. Which recipients this pass is for. Recipients are ranked by the highest-priority work waiting for them, then by sync priority, then least-recently-served first, never-served ahead of served. Only the top few are drawn from — as many as mailboxes per claim allows.
  2. Which of that recipient’s items. Within one recipient, highest class first, then the oldest available item.
  3. The order they come back in. Highest class first across the whole claim, then round robin across the chosen recipients, so a claim fills whole batches for a few mailboxes rather than one operation for many.

The first of those is why a privacy reduction anywhere in the estate pulls that recipient into the pass, and the third is why it is the first item handed to a worker when it gets there.

A publication’s class is copied onto every item its fan-out queues — the full pass over every contact for every recipient that runs when a rollout wave is released, when the rules or settings change, when a paused publication resumes, and when an operator forces a resync of one recipient. It does not touch work produced anywhere else: delta ingestion, reconciliation, destination read-backs and membership refreshes each carry their own class from the table above.

Five classes are accepted: Cleanup, Reconciliation, InitialSync, Incremental and Repair. The default is Incremental, which is also what the screens send for a new publication; nothing in the app offers a picker, so changing it means calling the publication API.

The other three are refused, for three different reasons.

RefusedWhy
PrivacyReductionIt is exempt from every brake an operator has. A publication that could name it would buy its ordinary deliveries out of quiet hours and the rate ceiling
SourceIngestionIt names work the source reader creates. A publication claiming it would outrank the ingestion its own contacts arrive on
PicturesIt is not a rate, it is where deferred faces sit. A publication set to it would write every contact behind every other publication’s photographs — not a slower rollout, one that starts when nothing else is running

An integer outside the enum is refused too: it sorted above privacy work as well.

The exemption line is 100 — PrivacyReduction, and nothing else. Clearing restricted fields from a mailbox that has lost access is a compliance action with a clock of its own, and deferring it ten hours because the office is open would be honouring the wrong obligation. Everything else waits.

The brakes are not the same shape, and the difference matters when you are watching a queue.

BrakeWhere it is setHow it applies
Quiet hoursSettings, deployment-wideA floor. Nothing below 100 is claimed at all, including source ingestion
Recipients per hourSettings, with a per-tenant override on the tenant’s pageA filter. Recipients already started this hour keep being worked; new ones wait. Work at 100 passes regardless
Write cooldownSettingsSkipped for work at 100. Otherwise a mailbox written to recently takes no new episode
Folder pausedThe folder’s own switch, or its publication’sPer folder, and not a delay. Only privacy work is claimed; everything else waits for the switch, however old it is
Source list switched offThe source listPer folder. Privacy work and anything at 100 is claimed; the rest waits

The last two are the ones that surprise people, because they are the only brakes with no clock. Quiet hours end. A pause ends when somebody ends it — so a repair queued behind one is not late, it is held, and the recipient’s folders say which switch holds it rather than letting the count look stalled.

Raising the floor for the rate limit as well was a bug: it excluded exactly the in-flight work the filter was letting through, and the queue stopped dead.

See Pacing on Settings for the numbers themselves.

Sync priority is the only one of the three that is about the person. It lives on the recipient’s subscription, so it is per publication: the same person may be urgent in dispatch’s publication and ordinary in the warehouse’s.

  • Range −100 to 100. Zero is no preference, which is what almost every recipient says.
  • Above zero sorts ahead of the rotation. Below zero sorts after everybody who has none.
  • It never overtakes a class. A privacy reduction anywhere still runs first, because that is a promise about data and this is a preference about order.

Set it on a publication’s Audience tab. Each row carries a number field and a reset button; the value is saved when the field is left or Enter is pressed, never on a keystroke, because typing 25 passes through 2 and saving that would re-order the queue twice for one decision. The list shows what the queue would do — raised recipients first, then never-served, then least recently served — with each recipient’s delivered count against what they are owed, which is usually the reason to move somebody. Anyone already carrying a preference stays visible through any search, so putting one back never depends on remembering who it was set on.

Changing it is deliberately not a policy change. It captures no version, does not increment the publication’s version, does not clear the dry run and does not refresh membership, because it changes nothing about what will be written to anybody — only the order in which the queue gets to them.

A picture is its own Graph PUT and there is no batched form. On a folder of six hundred contacts the cards are written in a handful of requests and the faces take minutes, as many at a time as the write concurrency allows — which is one only when that setting is one. Uploaded in the same pass as the contacts, those minutes are spent before the worker claims again, so recipients nine through two hundred waited on the photographs of one through eight.

So a picture is re-queued at 5, below everything including Cleanup: removing a card that should not be in somebody’s folder matters more than adding a face to one that should. The whole estate gets its cards, then the faces arrive.

Two things are not deferred. A picture removal goes immediately — leaving a face in a mailbox no longer entitled to it is exactly what a field withdrawal exists to prevent — and an item that is itself the deferred picture applies it, or nothing would ever upload one.

Because a queued face is not an outstanding delivery, it is left out of the counts that describe a recipient:

ReadsEffect of excluding pictures
Pending operations, and the badge on a recipientA finished recipient does not read Behind for the minutes the photographs take
A rollout wave’s finished participantsA wave advances rather than waiting behind faces
The settle block and the verification bookingA listing is taken when the cards are done
Last successful syncA picture PUT does not change the contact document, so a folder already verified does not flip back to unverified when a face lands

They are still real rows in a real queue. Queue counts every one of them, and a picture that dead-letters is still a dead letter.