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

    Type Alias DurableTaskCancelledExecution

    DurableTaskCancelledExecution: Omit<
        DurableTaskRunningExecution,
        "status"
        | "error",
    > & {
        status: "cancelled";
        error: DurableTaskCancelledError;
        runOutput?: unknown;
        childrenTasks?: DurableChildTaskExecution[];
        finalizeTask?: DurableChildTaskExecution;
        finishedAt: Date;
    }

    A durable 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: DurableTaskCancelledError
    • OptionalrunOutput?: unknown

      The output of the task. This is only present for tasks whose run method completed successfully.

    • OptionalchildrenTasks?: DurableChildTaskExecution[]

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

    • OptionalfinalizeTask?: DurableChildTaskExecution

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

    • finishedAt: Date