Table of Contents

Method AbandonAsync

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

AbandonAsync(IPersistenceSession, EmbeddingProfileId, CancellationToken)

Abandons a generation that was being built, leaving whichever one is serving where it is.

Task<bool> AbandonAsync(IPersistenceSession session, EmbeddingProfileId building, CancellationToken cancellationToken)

Parameters

session IPersistenceSession

The session whose transaction this write joins.

building EmbeddingProfileId

The generation to abandon.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<bool>

true when the generation was abandoned, and false when it was no longer being built.

Remarks

The row survives and its identity stays what it was, so activating the same model again later resolves to it rather than registering a second. What does not survive is the partial vectors, which the removal below reaches because the row is superseded like any other generation nothing reads. A generation that finished being built and became the one serving between the read and this write is not abandoned, because abandoning what searches are answered from is not what cancelling a reindex means.