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
sessionIPersistenceSessionThe session whose transaction this write joins.
buildingEmbeddingProfileIdThe generation to abandon.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
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.