Table of Contents

Interface IActivity<TData>

Namespace
Millrace.Workflows
Assembly
Millrace.dll

One unit of work in a workflow. Ordinary code with constructor DI โ€” no determinism constraints apply, because progress is checkpointed rather than replayed (ARCHITECTURE.md ยง6.2).

public interface IActivity<TData>

Type Parameters

TData

The workflow's data document.

Remarks

Every execution runs as a Layer 1 job, so an activity inherits retries, backoff, leases, distribution and dashboard visibility rather than reimplementing them. It also inherits at-least-once execution: an activity may run twice if a worker dies after doing the work and before the checkpoint commits, so side effects should be idempotent.

Methods

ExecuteAsync(ActivityContext<TData>, CancellationToken)

Runs this step of the workflow.