RecoveryScanner class

Scans for interrupted workflow executions and resumes or fails them.

On engine startup, the recovery scanner:

  1. Queries executions in RUNNING or SUSPENDED status
  2. Checks TTL expiry - marks expired ones as FAILED
  3. Restores pending timers and signals
  4. Resumes valid executions from their last completed step

Constructors

RecoveryScanner({required CheckpointStore store, required DurableEngineImpl engine})
Creates a RecoveryScanner.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scan({required Map<String, Future Function(WorkflowContext ctx)> workflowRegistry, void onRecoveryError(String executionId, Object error)?}) Future<RecoveryScanResult>
Scans for and recovers interrupted executions.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited