Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide client from activity context #1761

Open
cretz opened this issue Jan 7, 2025 · 0 comments · May be fixed by #1783
Open

Provide client from activity context #1761

cretz opened this issue Jan 7, 2025 · 0 comments · May be fixed by #1783
Labels
enhancement New feature or request

Comments

@cretz
Copy link
Member

cretz commented Jan 7, 2025

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.

@cretz cretz added the enhancement New feature or request label Jan 7, 2025
@yuandrew yuandrew linked a pull request Jan 17, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant