StepExecutor constructor
StepExecutor({
- required CheckpointStore store,
- required String workflowExecutionId,
- RetryExecutor? retryExecutor,
- Future<
void> delayFn(- Duration delay
- StepNameMismatchWarning? onStepNameMismatch,
Creates a StepExecutor.
retryExecutor is injectable for testing.
onStepNameMismatch is called when a replayed step's name differs from
the checkpointed name. Defaults to printing a warning to stdout.
Implementation
StepExecutor({
required CheckpointStore store,
required String workflowExecutionId,
RetryExecutor? retryExecutor,
this.delayFn,
StepNameMismatchWarning? onStepNameMismatch,
}) : _store = store,
_workflowExecutionId = workflowExecutionId,
_retryExecutor = retryExecutor ?? RetryExecutor(),
onStepNameMismatch = onStepNameMismatch ?? _defaultMismatchWarning;