Skip to main content

Function: replay()

replay(workflows, input, options?): Promise<WorkflowTaskResult>

Replay a history against tier-2 functions in process. workflows is one function or a map by export name. Returns the task result; throws DeterminismViolation on a mismatch and ReplayError on any other task failure.

Parameters​

workflows​

DurableWorkflow<never, unknown> | Readonly<Record<string, DurableWorkflow<never, unknown>>>

input​

ReplayInput

options?​

info?​

Partial<WorkflowInfoSnapshot>

nowMs?​

number

workflowFn?​

string

Returns​

Promise<WorkflowTaskResult>