Skip to content

Resolve timed conditions in durable input order on native Server - #1316

Merged
rmcdaniel merged 10 commits into
mainfrom
general/server230-condition-selection
Nov 23, 2026
Merged

rmcdaniel merged 10 commits into
mainfrom
general/server230-condition-selection

Conversation

@rmcdaniel

Copy link
Copy Markdown
Member

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.

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant