Skip to content

Provide client from activity context #1761

@cretz

Description

@cretz

Describe the solution you'd like

Allow users to access Temporal client from within an activity. This is likely a GetClient(context.Context) function in the activity package, but there may be circular import concerns. If so, maybe this is a GetClientInActivity(context.Context) function in the client package. Up to implementer. See temporalio/features#203.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions