Table of Contents

Method ExecuteAsync

Namespace
Millrace.Workflows
Assembly
Millrace.dll

ExecuteAsync(ActivityContext<TData>, CancellationToken)

Runs this step of the workflow.

Task ExecuteAsync(ActivityContext<TData> context, CancellationToken ct)

Parameters

context ActivityContext<TData>
ct CancellationToken

Returns

Task

Remarks

Returning is what reports success; throwing is what reports failure, and the surrounding job's retry policy decides what happens next. There is no return value because results are recorded by mutating Data — the document is what gets checkpointed, and anything an activity keeps elsewhere is gone when the job ends.

ct is the job's execution token, so it fires on cooperative cancellation and on shutdown. Honouring it is what lets a deploy drain cleanly instead of waiting out every long-running step.