Repository navigation
Disable single-batch workflow processing by default - #2121
Merged
Merged
Conversation
Sushisource
approved these changes
Nov 13, 2026
DABH
added a commit
to temporalio/documentation
that referenced
this pull request
Nov 14, 2026
temporalio/sdk-python#2121 turns single-batch activation processing off by default again for 1.36.1, which brings back the reused span ID on a reset's reapplied handler. The install command now pins 1.36.0 and the reset note says why, matching the sample's pin.
DABH
added a commit
to temporalio/samples-python
that referenced
this pull request
Nov 14, 2026
* Pin the Arize sample to temporalio 1.36.0 The reset case depends on 1.36.0 applying a Workflow Task's jobs as a single batch, so a reapplied update's span gets a fresh ID instead of reusing the original run's. temporalio/sdk-python#2121 turns that off by default again for 1.36.1 while the cancellation semantics are settled in temporalio/sdk-python#2124, so the next release would bring the duplicate IDs back. The pyproject comment and the README say why the pin exists and when to lift it. * clean up comments * clean up comments
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.
Summary
Disable single-batch workflow activation processing (workflow logic flag 2) by default. Unflagged workflows retain legacy signal/condition-wait ordering and cancellation behavior instead of adopting single-batch behavior on their next non-replay activation. Histories that already recorded flag 2 continue to honor it.
The experimental
asyncio.timeoutchange is not included.Refs #2116.
Validation
poe test: 1,847 passed, 10 skipped on Python 3.13.7 with the local workflow environment.git diff --checkpassed.The test run emitted warnings and shutdown diagnostics similar to the earlier baseline run, but no test failures.