Repository navigation
Retrieve workflow task payloads through per-run storage - #3252
Open
jmaeagle99 wants to merge 1 commit into
Open
jmaeagle99 wants to merge 1 commit into
jmaeagle99 wants to merge 1 commit into
Conversation
jmaeagle99
force-pushed
the
extstore-workflow-decode-refs
branch
from
December 3, 2026 20:23
cbd1c54 to
c54a5d8
Compare
jmaeagle99
force-pushed
the
extstore-workflow-decode-refs
branch
from
December 3, 2026 21:53
c54a5d8 to
e106209
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was changed
WorkflowRunStorageretrieves 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 throughgetStorage().ReplayWorkflowTaskHandlerretrieves 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.ServiceWorkflowHistoryIteratorretrieves history pages through the run's storage.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
How was this tested: Existing tests
Any docs updates needed? No