Method ReadWorkloadAsync
- Namespace
- MailFathom.Application.Emails.Embeddings.Administration
- Assembly
- MailFathom.Application.dll
ReadWorkloadAsync(EmbeddingProfileFingerprint, CancellationToken)
Counts the mail one vector space has still to embed.
Task<EmbeddingWorkload> ReadWorkloadAsync(EmbeddingProfileFingerprint geometry, CancellationToken cancellationToken)
Parameters
geometryEmbeddingProfileFingerprintThe fingerprint of the vector space the work is measured against.
cancellationTokenCancellationTokenCancels the counting.
Returns
- Task<EmbeddingWorkload>
What that space still owes, and how much of the searchable mail it already covers.
Remarks
Unbounded aggregates over the passages of a mailbox, so it is asked once per operator command rather than per unit of work. A message whose passages have not been cut yet is counted as outstanding but contributes no characters, because nothing has decided yet how many passages its text becomes.