Skip to content

fix: skip wait conditions for queries and tasks that only reject updates - #635

Merged
jmaeagle99 merged 1 commit into
mainfrom
skip-conditions-for-queries-rejected-updates
Oct 22, 2026
Merged

jmaeagle99 merged 1 commit into
mainfrom
skip-conditions-for-queries-rejected-updates

Conversation

@jmaeagle99

Copy link
Copy Markdown
Contributor

What was changed

Wait conditions are no longer resolved for queries, or in a workflow task that only delivers updates and rejects all of them. A per-activation check_conditions flag gates wait-condition resolution in the scheduler. It is set when the activation has a job other than an update or query, or when an update is accepted.

Why?

Queries and rejected updates leave nothing in history, so workflow code they woke up (e.g. a condition on a per-task value) can't be reproduced on replay. sdk-rust #1658 now fails rejection-only tasks with TMPRL1100, and Core also rejects commands sent alongside a legacy query response.

Checklist

  1. How was this tested:

    • test_rejected_update_does_not_evaluate_conditions: rejected updates and queries don't evaluate conditions; an accepted update does. Fails without the change; also replays its own history.
  2. Any docs updates needed? No.

@jmaeagle99
jmaeagle99 requested a review from a team as a code owner October 22, 2026 15:31
@jmaeagle99
jmaeagle99 enabled auto-merge (squash) October 22, 2026 16:51
@jmaeagle99
jmaeagle99 merged commit 39ab822 into main Oct 22, 2026
23 of 25 checks passed
@jmaeagle99
jmaeagle99 deleted the skip-conditions-for-queries-rejected-updates branch October 22, 2026 17:09
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