Table of Contents

Method FindSupersededProfileHoldingVectorsAsync

Namespace
MailFathom.Application.Emails.Embeddings.Generations
Assembly
MailFathom.Application.dll

FindSupersededProfileHoldingVectorsAsync(CancellationToken)

Finds a superseded generation that still holds vectors, if one does.

Task<EmbeddingProfileId?> FindSupersededProfileHoldingVectorsAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Cancels the read.

Returns

Task<EmbeddingProfileId?>

The generation whose vectors are still to be removed, or null when none is.

Remarks

One at a time, because removal is bounded and a pass empties one generation before it looks at another. A generation activated again while its removal was in progress is no longer superseded and stops being reported here, which is what lets a rollback keep whatever vectors it still had.