Dex TypeScript SDK 1.35.0
    Preparing search index...

    Variable StepAttemptProgressConst

    StepAttemptProgress: Readonly<
        {
            NOT_COMPLETED: "notCompleted";
            NOT_STARTED: "notStarted";
            UNSPECIFIED: "unspecified";
        },
    > = ...

    Reports the furthest progress across all attempts of one Step method call.

    Read it from recoveryError.attemptProgress in a recovery Step to decide whether the failed handler may have caused external effects. Treat UNSPECIFIED, an omitted value, and any value this SDK does not know like NOT_COMPLETED.

    const progress = context.recoveryError?.attemptProgress ?? StepAttemptProgress.UNSPECIFIED;
    if (progress === StepAttemptProgress.NOT_STARTED) {
    // No attempt ran the handler, so no external effect happened.
    } else {
    // Some attempt may have run; reconcile external effects before repeating them.
    }