-
Couldn't load subscription status.
- Fork 130
fix(pegboard): fix prewarm logic #2409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(pegboard): fix prewarm logic #2409
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
Improved client selection logic and error handling for the Pegboard prewarming system and Actor API endpoints.
- Added ping threshold check in
pegboard.rsto filter out stale clients usingCLIENT_ELIGIBLE_THRESHOLD_MS - Switched to
StreamingMode::Iteratorinprewarm_imagefor comprehensive client scanning - Modified error handling in
actors.rsto capture last error instead of first error for better failure state visibility - Enhanced error message formatting in
createfunction to include both status and content details - Restructured client selection loop to return first eligible client rather than first available client
2 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
| // Scan by last ping | ||
| if key.last_ping_ts < ping_threshold_ts { | ||
| continue; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: Consider adding a log when skipping clients due to ping threshold to help with debugging
Deploying rivet-studio with
|
| Latest commit: |
9f0d2d6
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://4f02ae1a.rivet-studio.pages.dev |
| Branch Preview URL: | https://04-28-fix-pegboard-fix-prewa.rivet-studio.pages.dev |
Deploying rivet with
|
| Latest commit: |
9f0d2d6
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://04e36d8e.rivet.pages.dev |
| Branch Preview URL: | https://04-28-fix-pegboard-fix-prewa.rivet.pages.dev |
4b317df to
9f0d2d6
Compare
2ffbbd6 to
8cd9d0a
Compare
Merge activity
|
<!-- Please make sure there is an issue that this PR is correlated to. --> ## Changes <!-- If there are frontend changes, please include screenshots. -->

Changes