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

    Type Alias DurableTaskRunContext

    The context object passed to a durable task when it is run.

    type DurableTaskRunContext = {
        taskId: string;
        executionId: string;
        cancelSignal: CancelSignal;
        shutdownSignal: CancelSignal;
        attempt: number;
        prevError?: DurableTaskError;
    }
    Index

    Properties

    taskId: string

    The task id.

    executionId: string

    The task execution id.

    cancelSignal: CancelSignal

    The cancel signal of the task. It can be used to gracefully shutdown the task run function when the task has been cancelled.

    shutdownSignal: CancelSignal

    The shutdown signal of the executor. It is cancelled when the executor is shutting down. It can be used to gracefully shutdown the task when executor is shutting down.

    attempt: number

    The attempt number of the task. The first attempt is 0, the second attempt is 1, etc.

    prevError?: DurableTaskError

    The error of the previous attempt.