Repository navigation
fix(pegboard-envoy): retry failed actor event dispatch instead of dropping events - #5859
Open
eersnington wants to merge 1 commit into
Open
eersnington wants to merge 1 commit into
eersnington wants to merge 1 commit into
Conversation
|
This PR was not deployed automatically as @eersnington does not have access to the Railway project. In order to get automatic PR deploys, please add @eersnington to your workspace on Railway. |
Contributor
Review: retry failed actor event dispatchThe approach is sound. Retrying the same batch in order fixes the dropped "stopped" bug, and Potential issues
Tests
Nits
No security concerns. Overall this looks good, and (1) is the one I would address before merging. |
eersnington
force-pushed
the
stack/fix-pegboard-envoy-retry-failed-actor-event-dispatch-sksrlwzs
branch
from
October 11, 2026 20:26
934064c to
ee7dc70
Compare
This branch has not been deployed
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.
Retry a failed actor event dispatch instead of dropping every later event for that actor.
actor_event_demuxer.rs, onedispatch_eventserror (for example UDB "max number of transaction retries reached") ended the handler loop. The actor never got its "stopped" event, so every later wake waited forever.Backoff::new(5, None, 250, 250)until it lands. This is safe because the actor2 workflow ignores events it already received (dedupe on generation and index).shutdown()cancels the token after it drops the senders. Handlers still dispatch buffered events, and a handler that is retrying exits.dispatch_eventstakes&[EventWrapper]so the batch can be retried.