Table of Contents

Method RunAsync

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

RunAsync(CancellationToken)

Runs one bounded pass.

public Task<EmbeddingGenerationUpkeepResult> RunAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Cancels the pass between its steps and inside each of them.

Returns

Task<EmbeddingGenerationUpkeepResult>

What the pass produced, and whether running again shortly would reach more.

Exceptions

PersistenceConcurrencyConflictException

Thrown when a competing writer wins a race the bounded retries could not resolve.

EmbeddingVectorIndexFailedException

Thrown when the database refused to remove a superseded generation's index.

OperationCanceledException

Thrown when the caller cancels. Everything already committed stays durable.