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 in activity context #740

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

dandavison
Copy link
Contributor

@dandavison dandavison commented Jan 18, 2025

Fixes #721

@dandavison dandavison requested a review from a team as a code owner January 18, 2025 04:30
@dandavison dandavison marked this pull request as draft January 18, 2025 04:42
@dandavison dandavison force-pushed the 203-activity-client-instance branch 2 times, most recently from 1e72703 to 962135c Compare January 23, 2025 22:47
@dandavison dandavison force-pushed the 203-activity-client-instance branch from 962135c to 3164f69 Compare January 23, 2025 22:48
@dandavison dandavison marked this pull request as ready for review January 23, 2025 22:48
temporalio/activity.py Outdated Show resolved Hide resolved
Co-authored-by: Chad Retz <chad@temporal.io>
@dandavison
Copy link
Contributor Author

This needs a bit more work -- as things stand it's attempting to pickle the client in the context in tests of process-based executor pools (which fails when it tries to pickle the RuntimeRef), but I wonder if that means it is attempting to share the client across threads in thread-based executor pools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Provide client from activity context
2 participants