Skip to content

pause: nil EndTime for Paused Workflows when listing workflows#10893

Draft
spkane31 wants to merge 2 commits into
mainfrom
spk/pause-wf-end-time
Draft

pause: nil EndTime for Paused Workflows when listing workflows#10893
spkane31 wants to merge 2 commits into
mainfrom
spk/pause-wf-end-time

Conversation

@spkane31

Copy link
Copy Markdown
Contributor

What changed?

convertToWorkflowExecutionInfo previously set CloseTime, ExecutionDuration, HistoryLength, HistorySizeBytes, and StateTransitionCount for any workflow whose status was not RUNNING. The condition now also excludes WORKFLOW_EXECUTION_STATUS_PAUSED, so paused executions are reported as open.

  • common/persistence/visibility/visibility_manager_impl.go — exclude PAUSED from the "close record" branch.
  • tests/pause_workflow_execution_test.go — add TestListWorkflowExecutionsPausedHasNoCloseTime.

Why?

A bug found during bug bash that incorrectly shows Paused workflows with a closed time.

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

Minimal, feature is still gated behind dynamic config.

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.

1 participant