temporalio / temporalio/sdk-python

[Feature Request] Add explicit memoization support to the `patched()` API

Open
#754 0 comments 0 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

In short:

  • Add a memoized argument to the patched and deprecate_patch APIs.

  • Keep backward compatibility on those functions for non-specifying the memoized argument, but deprecate those signatures. Make sure documentation clearly indicate how existing calls may safely get converted.

  • Delegate handling of the patched logic to Core.

See temporalio/features#591 for details.

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 patched and deprecate_patch API entry points, then read temporalio/features#591 for the detailed requirements. The work is done when both APIs accept explicit memoized behavior, preserve and deprecate the existing signatures safely, document migration guidance, and delegate patched handling to Core.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.