Repository navigation
Resolve timed conditions in durable input order on native Server - #1316
Merged
Merged
Conversation
|
This was referenced Nov 23, 2026
Merged
rmcdaniel
marked this pull request as ready for review
November 23, 2026 23:44
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.



Refs durable-workflow/.github#230.
Timed conditions use the accepted ordering of applied signal and update effects. Server retains the original timeout and a competing child terminal. The capable worker evaluates the eligible prefix before Server records one winner. An older worker cannot claim a run with marked history. Existing recorded outcomes retain their original meaning.
New authoring is disabled by default and is bound to the workflow lease when enabled. This separates compatibility with recorded ordered waits from admission of new ones. The runbook covers enabling after all Server processes are compatible and stopping new authoring while marked runs are active. The worker OpenAPI document adds the optional claim metadata and resolution command.
The native selection and deadline suites passed 31 tests each on SQLite, PostgreSQL, MySQL and MariaDB. A staged integration test let published Server 3.26.0 share a database with the new Server while authoring was off. It removed the predecessor, opened a marked wait, then disabled authoring and verified that the early approval still won. PHP, Python and Rust passed five competing child cases each with the gate enabled. Rust also verified both orderings against a two-child group.
Companion SDK changes are in durable-workflow/sdk-php#475, durable-workflow/sdk-python#375 and durable-workflow/sdk-rust#316.