durable-execution - v0.32.0
    Preparing search index...

    Type Alias CompletedTaskExecution<TOutput>

    CompletedTaskExecution: Omit<
        WaitingForChildrenTaskExecution,
        "status"
        | "output"
        | "waitingForChildrenStartedAt",
    > & {
        status: "completed";
        output: TOutput;
        finishedAt: Date;
        waitingForChildrenStartedAt?: Date;
        waitingForFinalizeStartedAt?: Date;
        finalize?: TaskExecutionSummary;
    }

    A task execution that completed successfully.

    Type Parameters

    • TOutput = unknown

    Type Declaration

    • status: "completed"
    • output: TOutput
    • finishedAt: Date
    • OptionalwaitingForChildrenStartedAt?: Date

      The time the task execution waiting for children started. This is only present for tasks which have children tasks and whose run method completed successfully.

    • OptionalwaitingForFinalizeStartedAt?: Date

      The time the task execution waiting for finalize started. This is only present for tasks which have a finalize task and whose run method completed successfully and children tasks finished.

    • Optionalfinalize?: TaskExecutionSummary

      The finalize task execution. This is only present for tasks which have a finalize task and whose run method completed successfully and children tasks finished.