fix(pegboard): align drain grace defaults with stop threshold#4958
fix(pegboard): align drain grace defaults with stop threshold#4958NathanFlurry merged 1 commit intomainfrom
Conversation
11daf92 to
f677b5c
Compare
7205bad to
f2aaf93
Compare
PR Review: fix(pegboard): align drain grace defaults with stop thresholdSummaryThis PR raises the Issues Found1. Test added to deprecated
|
| Category | Finding | Severity |
|---|---|---|
| Convention | New test placed in deprecated runner/ directory, not envoy/ |
Medium |
| Correctness | Misleading comment on drain_grace_period default in two files |
Low |
| Logic | No validation that drain_grace_period < request_lifespan |
Medium |
| Docs | railway.mdx still recommends 60-second drain window (too short now) |
Low |
| Style | Magic 30 * 60 duplicated across three files without a named constant |
Minor |
f677b5c to
c2198e9
Compare
f2aaf93 to
89798df
Compare
89798df to
e1be3d6
Compare
MasterPtato
left a comment
There was a problem hiding this comment.
Wasn't 60 minute actor stop a temporary fix? It should not be so high
e1be3d6 to
f8261ca
Compare
d612792 to
99e74a3
Compare
f8261ca to
4bec251
Compare

Stack Context
This PR is stacked on the actor shutdown work in
abort-signal/finalize-once.What?
drain_grace_periodexceedsactor_stop_threshold.Why?
The engine can mark an actor lost if its configured drain grace exceeds the stop threshold. Making the default values consistent prevents default runner configs from entering an invalid or unsafe timing setup.
Testing
cargo test -p rivet-engine --test mod runner::api_runner_configs_upsert -- --nocapturepnpm --dir rivetkit-typescript/packages/rivetkit run check-types