Skip to content

fix(client): map the Paused workflow execution status - #860

Merged
xepozz merged 2 commits into
temporalio:masterfrom
pcbeingused333:fix/paused-workflow-status
Nov 27, 2026
Merged

xepozz merged 2 commits into
temporalio:masterfrom
pcbeingused333:fix/paused-workflow-status

Conversation

@pcbeingused333

Copy link
Copy Markdown
Contributor

The server can report WORKFLOW_EXECUTION_STATUS_PAUSED (8), but Temporal\Workflow\WorkflowExecutionStatus stops at TimedOut = 7. WorkflowExecutionInfoMapper::fromMessage() calls WorkflowExecutionStatus::from(), so mapping a paused workflow's info (for example through describe()) throws:

ValueError: 8 is not a valid backing value for enum Temporal\Workflow\WorkflowExecutionStatus

This adds case Paused = 8, matching the value in the protobuf enum shipped by roadrunner/api-dto. The mapper is the only place in src/ that converts the raw status into this enum.

The same gap exists in the Python SDK: temporalio/sdk-python#2168.

Validation

Added testFromPayloadWithPausedStatus to WorkflowExecutionInfoMapperTestCase. It fails with the ValueError above without the change and passes with it.

This change was prepared with AI assistance.

@pcbeingused333
pcbeingused333 requested review from a team, roxblnfk and wolfy-j as code owners November 26, 2026 22:30
@xepozz

xepozz commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Thank you!

@xepozz
xepozz merged commit 854d509 into temporalio:master Nov 27, 2026
92 checks passed
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