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

    Type Alias CancelledTaskExecution

    CancelledTaskExecution: Omit<ReadyTaskExecution, "status" | "error"> & {
        status: "cancelled";
        error: DurableExecutionErrorStorageValue;
        finishedAt: Date;
        executorId?: string;
        startedAt?: Date;
        expiresAt?: Date;
        waitingForChildrenStartedAt?: Date;
        waitingForFinalizeStartedAt?: Date;
        children?: TaskExecutionSummary[];
        activeChildrenCount: number;
        finalize?: TaskExecutionSummary;
    }

    A task execution that was cancelled. This can happen when a task is cancelled by using the cancel method of the task handle or when the task is cancelled because it's parent task failed.

    Type Declaration

    • status: "cancelled"
    • error: DurableExecutionErrorStorageValue
    • finishedAt: Date
    • OptionalexecutorId?: string

      The id of the executor. This is only present for tasks which were cancelled while running.

    • OptionalstartedAt?: Date

      The time the task execution started. This is only present for tasks which started running.

    • OptionalexpiresAt?: Date

      The time the task execution expires. This is only present for tasks which started running.

    • 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.

    • Optionalchildren?: TaskExecutionSummary[]

      The children task executions that were running when the task was cancelled. This is only present for tasks whose run method completed successfully.

    • activeChildrenCount: number

      The number of children task executions that are still active. This is only present for tasks whose run method completed successfully.

    • 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.