Skip to content

Conversation

@MasterPtato
Copy link
Contributor

Changes

Copy link
Contributor Author

MasterPtato commented Apr 29, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more


How to use the Graphite Merge Queue

Add the label merge-queue to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link

@greptile-apps greptile-apps bot left a 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.rs to filter out stale clients using CLIENT_ELIGIBLE_THRESHOLD_MS
  • Switched to StreamingMode::Iterator in prewarm_image for comprehensive client scanning
  • Modified error handling in actors.rs to capture last error instead of first error for better failure state visibility
  • Enhanced error message formatting in create function 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

Comment on lines +44 to +47
// Scan by last ping
if key.last_ping_ts < ping_threshold_ts {
continue;
}
Copy link

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

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Apr 29, 2025

Deploying rivet-hub with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9f0d2d6
Status:🚫  Build failed.

View logs

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Apr 29, 2025

Deploying rivet-studio with  Cloudflare Pages  Cloudflare Pages

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

View logs

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Apr 29, 2025

Deploying rivet with  Cloudflare Pages  Cloudflare Pages

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

View logs

@graphite-app
Copy link
Contributor

graphite-app bot commented May 2, 2025

Merge activity

  • May 1, 9:57 PM EDT: MasterPtato added this pull request to the Graphite merge queue.
  • May 1, 9:58 PM EDT: CI is running for this pull request on a draft pull request (#2422) due to your merge queue CI optimization settings.
  • May 1, 9:59 PM EDT: Merged by the Graphite merge queue via draft PR: #2422.

graphite-app bot pushed a commit that referenced this pull request May 2, 2025
<!-- Please make sure there is an issue that this PR is correlated to. -->

## Changes

<!-- If there are frontend changes, please include screenshots. -->
@graphite-app graphite-app bot closed this May 2, 2025
@graphite-app graphite-app bot deleted the 04-28-fix_pegboard_fix_prewarm_logic branch May 2, 2025 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants