Skip to content

Add SKIP_YIELD_ON_VERSION to initialFlags#2819

Open
eamsden wants to merge 2 commits intomasterfrom
eamsden/sdk-flags-getVersion
Open

Add SKIP_YIELD_ON_VERSION to initialFlags#2819
eamsden wants to merge 2 commits intomasterfrom
eamsden/sdk-flags-getVersion

Conversation

@eamsden
Copy link
Copy Markdown
Contributor

@eamsden eamsden commented Mar 27, 2026

What was changed

Added SKIP_YIELD_ON_VERSION to WorkflowStateMachines.initialFlags

Why?

This flag already fixes the behavior seen in #2810 but was not enabled by default and should be.

Checklist

  1. Closes Workflow task failed with an internal Java SDK runner-closed error, masking the original workflow exception. #2810

  2. How was this tested:
    A new regression test was added: WorkflowFailureGetVersionTest which runs the exact reproduction from Workflow task failed with an internal Java SDK runner-closed error, masking the original workflow exception. #2810 and asserts that the actual exception thrown by the workflow is re-thrown, rather than an exception showing the worker was closed. This test was verified to fail without the SKIP_YIELD_ON_VERSION SDK flag and to succeed with it.

  3. Any docs updates needed?
    No, this is a fix.

@eamsden eamsden marked this pull request as ready for review March 27, 2026 21:13
@eamsden eamsden requested a review from a team as a code owner March 27, 2026 21:13
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.

Workflow task failed with an internal Java SDK runner-closed error, masking the original workflow exception.

1 participant