fix(pegboard): refresh runner config after envoy connect#4778
Conversation
PR Review: fix(pegboard): refresh runner config after envoy connectWhat the change doesOn every envoy connection, the old code unconditionally wrote the pool's protocol version to UDB but never purged the runner-config cache afterward. This meant consumers (via The PR fixes this by:
As a bonus, the protocol version read is parallelized with the missed-commands range scan using CorrectnessCache purge placement is correct. Purging after First-connection case is handled. Same-version reconnect is handled. When the envoy reconnects without changing its protocol version, the read returns Parallel reads within the same FDB transaction. Type annotation on map closure. The added Minor observations
No concerns on
SummaryThe fix is correct, minimal, and follows existing codebase patterns for cache invalidation. No blocking issues. LGTM once the draft is ready and the PR description is filled in with the root cause (cache was never purged, leaving readers with stale pre-mk2 runner config data after a reconnect). Generated with Claude Code |
Preview packages published to npmInstall with: npm install rivetkit@pr-4778All packages published as Engine binary is shipped via Docker images: docker pull rivetdev/engine:slim-1bb070b
docker pull rivetdev/engine:full-1bb070bIndividual packagesnpm install rivetkit@pr-4778
npm install @rivetkit/react@pr-4778
npm install @rivetkit/rivetkit-napi@pr-4778
npm install @rivetkit/workflow-engine@pr-4778 |
1a47f5e to
db4224a
Compare
36392d2 to
9b12a58
Compare

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist: