Skip to content

Conversation

@simvlad
Copy link
Contributor

@simvlad simvlad commented Dec 11, 2025

What changed?

Added external payload stats (size and count) to WorkflowTaskStartedEvent and DescribeWorkflowExecution. Also change and add functional tests. This PR depends on Server PR #8775 and API PR temporalio/api#689.

Why?

We'd like to surface the external payload stats when DescribeWorkflowExecution is called to see how many and what size of external payloads the workflow is referencing. Numbers are coming from the workflow mutable state. This is similar to how the HistorySize is kept. We also would like to surface the intermediate stats for workflow tasks, so that the users can debug the tasks which contribute most to the total external payload size.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

Potential risks

Any change is risky. Identify all risks you are aware of. If none, remove this section.

@simvlad simvlad requested review from a team as code owners December 11, 2025 18:56
@simvlad simvlad changed the base branch from main to simvlad/payload-size-stats-for-workflow-execution December 11, 2025 18:57
modernc.org/mathutil v1.7.1 // indirect
modernc.org/memory v1.11.0 // indirect
)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The API change is not released yet. Will remove this before merging this PR.

@simvlad simvlad requested review from jmaeagle99 and yycptt December 11, 2025 18:58
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.

2 participants