Skip to content

Conversation

@JoshVanL
Copy link

Fixes a race condition whereby pending work items are added to the waiting set after they are actually sent on the work item queue. This means in scenarios where the work item is processed very quickly (i.e. a no-op workflow or activity), the work item is attempted to be completed before it is logged.

Updates the wait for funcs to add the items to the pending set before sending them on the work item queue.

Fixes a race condition whereby pending work items are added to the
waiting set _after_ they are actually sent on the work item queue. This
means in scenarios where the work item is processed very quickly (i.e. a
no-op workflow or activity), the work item is attempted to be completed
before it is logged.

Updates the wait for funcs to add the items to the pending set before
sending them on the work item queue.

Signed-off-by: joshvanl <me@joshvanl.dev>
@JoshVanL JoshVanL requested a review from a team as a code owner January 29, 2026 18:49
@JoshVanL JoshVanL merged commit 3839db5 into dapr:main Jan 30, 2026
2 checks passed
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.

3 participants