temporalio / temporalio/sdk-python

[Feature Request] Research and make SDK free-threading capable/compatible

Open
#928 1 comment 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
1.2k
Forks
241
Avg merge
3d 21h
Merged PRs (30d)
55

Description

Describe the solution you'd like

Kind of related to #863. Per https://pyo3.rs/v0.25.1/free-threading.html this should be a simple opt-in, but we may have struggles with Python Protobuf (have to confirm they are free-threading compat too). Need to research first and confirm findings and what we'd have to do if it's anything significant. We will also need to have CI-based confirmation of our compatibility with a free-threading runtime.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked PyO3 free-threading documentation and investigate whether Python Protobuf is compatible with free-threading. Confirm the SDK changes required and define CI-based confirmation against a free-threading runtime; done means the findings are documented and CI verifies compatibility.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.