Skip to content

Retrieve workflow task payloads through per-run storage - #3252

Open
jmaeagle99 wants to merge 1 commit into
mainfrom
extstore-workflow-decode-refs
Open

jmaeagle99 wants to merge 1 commit into
mainfrom
extstore-workflow-decode-refs

Conversation

@jmaeagle99

@jmaeagle99 jmaeagle99 commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

What was changed

  • New internal WorkflowRunStorage retrieves the stored payloads of one workflow run's tasks and history pages. It is created with the run's handler, and the cached handler exposes it through getStorage().
  • ReplayWorkflowTaskHandler retrieves the task after looking up the cached run, through that run's storage. A new run retrieves once, after any full-history fetch, instead of retrieving the partial task and then the full history.
  • ServiceWorkflowHistoryIterator retrieves history pages through the run's storage.
  • Retrieval itself is unchanged: plain references only, same runner call.

Why?

Decoding codec-encoded references in workflow tasks, coming next, needs state that outlives one task: the context of a result payload comes from the event that scheduled it, which may be in an earlier task or history page. That state has to live with the cached run, so retrieval moves onto an object the run owns and happens after the run is looked up. It also stops a new run from retrieving a partial history that is then thrown away.

Checklist

  1. How was this tested: Existing tests

  2. Any docs updates needed? No

@jmaeagle99
jmaeagle99 added this pull request to stack #3251 December 2, 2026 21:20
@jmaeagle99
jmaeagle99 requested a review from a team as a code owner December 2, 2026 21:20
@jmaeagle99 jmaeagle99 added the skip-changelog PR changes do not require changelog updates label Dec 2, 2026
@jmaeagle99
jmaeagle99 force-pushed the extstore-workflow-decode-refs branch from cbd1c54 to c54a5d8 Compare December 3, 2026 20:23
Base automatically changed from extstore-runner-plain-only to main December 3, 2026 21:53
@jmaeagle99
jmaeagle99 force-pushed the extstore-workflow-decode-refs branch from c54a5d8 to e106209 Compare December 3, 2026 21:53

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog PR changes do not require changelog updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant