fix(rivetkit-core): return stopping not starting when sleep/destroy called mid-shutdown#4757
Conversation
PR Review: fix(rivetkit-core): return stopping not starting when sleep/destroy called mid-shutdownOverviewThis PR fixes a diagnostic accuracy bug in the Code QualityCorrect and targeted. The three-flag check in Non-atomic multi-load pattern is acceptable here. The three atomic reads are not one coherent snapshot, but this only matters for diagnostic classification, not for making a state transition. The actual state transition is governed by the subsequent Comments follow conventions -- complete sentences, no em-dashes, explain the why not the what. Potential IssuesMissing test for the
Both branches are reachable in production and meaningfully different from the pre-startup case. Asymmetry between Suggestions
SummaryThe core fix is correct, well-commented, and safe. The one material gap is missing test coverage for the |
c7f9133 to
ace5f49
Compare
1939547 to
68ddecb
Compare
Preview packages published to npmInstall with: npm install rivetkit@pr-4757All packages published as Engine binary is shipped via Docker images: docker pull rivetdev/engine:slim-c15ed18
docker pull rivetdev/engine:full-c15ed18Individual packagesnpm install rivetkit@pr-4757
npm install @rivetkit/react@pr-4757
npm install @rivetkit/rivetkit-napi@pr-4757
npm install @rivetkit/workflow-engine@pr-4757 |
…alled mid-shutdown
68ddecb to
a4740bd
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: