fix(pegboard): increase signal timeout, add check for actor exit#2538
Closed
Conversation
Deploying rivet-studio with
|
| Latest commit: |
3b1c588
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://199c1912.rivet-studio.pages.dev |
| Branch Preview URL: | https://06-04-fix-pegboard-increase.rivet-studio.pages.dev |
This was referenced Jun 4, 2025
Closed
Contributor
Author
This was referenced Jun 4, 2025
There was a problem hiding this comment.
PR Summary
Enhances pegboard system's actor management and image prewarming with focus on signal handling and timeout improvements.
- Increased
STOP_PID_RETRIESfrom 32 to 1024 inpackages/edge/infra/client/manager/src/actor/mod.rsfor longer actor stop timeout - Added actor exit check in signal handling to prevent unnecessary PID wait cycles
- Modified
prewarm_imageinpackages/edge/infra/client/manager/src/utils/mod.rsto handle prewarming asynchronously withArc<Ctx> - Reduced log spam by only showing progress every 10 retries during actor stop process
- Simplified image prewarming in
packages/edge/infra/client/manager/src/ctx.rsby removing unnecessary task spawning
3 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
Comment on lines
412
to
416
| protocol::ToClient::PrewarmImage { | ||
| image_id, | ||
| image_artifact_url_stub, | ||
| } => { | ||
| let self2 = self.clone(); | ||
|
|
||
| tokio::spawn(async move { | ||
| utils::prewarm_image(&self2, image_id, &image_artifact_url_stub).await | ||
| }); | ||
| } | ||
| } => utils::prewarm_image(&self, image_id, &image_artifact_url_stub), | ||
| } |
There was a problem hiding this comment.
logic: Consider adding .await to the utils::prewarm_image call since it's an async function
Suggested change
| protocol::ToClient::PrewarmImage { | |
| image_id, | |
| image_artifact_url_stub, | |
| } => { | |
| let self2 = self.clone(); | |
| tokio::spawn(async move { | |
| utils::prewarm_image(&self2, image_id, &image_artifact_url_stub).await | |
| }); | |
| } | |
| } => utils::prewarm_image(&self, image_id, &image_artifact_url_stub), | |
| } | |
| protocol::ToClient::PrewarmImage { | |
| image_id, | |
| image_artifact_url_stub, | |
| } => utils::prewarm_image(&self, image_id, &image_artifact_url_stub).await?, |
Deploying rivet-hub with
|
| Latest commit: |
3b1c588
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://afb57b1c.rivet-hub-7jb.pages.dev |
| Branch Preview URL: | https://06-04-fix-pegboard-increase.rivet-hub-7jb.pages.dev |
Deploying rivet with
|
| Latest commit: |
3b1c588
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e6ea7fd5.rivet.pages.dev |
| Branch Preview URL: | https://06-04-fix-pegboard-increase.rivet.pages.dev |
f9ef2e7 to
a52399a
Compare
4f69969 to
a38c8f3
Compare
This was referenced Jun 4, 2025
a52399a to
6f7c837
Compare
a38c8f3 to
100bf59
Compare
6f7c837 to
ec71a65
Compare
100bf59 to
5517494
Compare
This was referenced Jun 5, 2025
Closed
ec71a65 to
bbbf37e
Compare
5517494 to
3b1c588
Compare
This was referenced Jun 6, 2025
Contributor
Merge activity
|
graphite-app Bot
pushed a commit
that referenced
this pull request
Jun 9, 2025
<!-- Please make sure there is an issue that this PR is correlated to. --> ## Changes <!-- If there are frontend changes, please include screenshots. -->
This was referenced Jun 9, 2025
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.

Changes