DurableActivityContext: {
    activityName: string;
    argumentMetadata: Record<string, any>;
    arguments: any[];
    workflowId: string;
    workflowTopic: string;
}

Context available inside an executing activity function via Durable.activity.getContext(). Populated by the activity worker using activityAsyncLocalStorage.

Type declaration

  • activityName: string

    The name of the activity function being executed

  • argumentMetadata: Record<string, any>

    Optional metadata provided via proxyActivities({ argumentMetadata })

  • arguments: any[]

    The arguments passed to the activity

  • workflowId: string

    The workflow ID of the parent workflow that dispatched this activity

  • workflowTopic: string

    The workflow topic of the parent workflow