Skip to content

fix(pegboard): fix collecting metrics for actors without workflows#2519

Closed
NathanFlurry wants to merge 1 commit into
05-31-feat_guard_add_http_ping_endpoint_to_edge_api_hostsfrom
05-31-fix_pegboard_fix_collecting_metrics_for_actors_without_workflows
Closed

fix(pegboard): fix collecting metrics for actors without workflows#2519
NathanFlurry wants to merge 1 commit into
05-31-feat_guard_add_http_ping_endpoint_to_edge_api_hostsfrom
05-31-fix_pegboard_fix_collecting_metrics_for_actors_without_workflows

Conversation

@NathanFlurry

Copy link
Copy Markdown
Member

Changes

NathanFlurry commented Jun 2, 2025

Copy link
Copy Markdown
Member Author

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.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 2, 2025

Copy link
Copy Markdown

Deploying rivet with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4527a1a
Status: ✅  Deploy successful!
Preview URL: https://e2bc9dc2.rivet.pages.dev
Branch Preview URL: https://05-31-fix-pegboard-fix-colle.rivet.pages.dev

View logs

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 2, 2025

Copy link
Copy Markdown

Deploying rivet-hub with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4527a1a
Status: ✅  Deploy successful!
Preview URL: https://3febe489.rivet-hub-7jb.pages.dev
Branch Preview URL: https://05-31-fix-pegboard-fix-colle.rivet-hub-7jb.pages.dev

View logs

@MasterPtato MasterPtato force-pushed the 05-31-fix_pegboard_fix_collecting_metrics_for_actors_without_workflows branch from dff268d to 4527a1a Compare June 3, 2025 01:54
@MasterPtato MasterPtato force-pushed the 05-31-feat_guard_add_http_ping_endpoint_to_edge_api_hosts branch from 64ab176 to 64361fd Compare June 3, 2025 01:54
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 3, 2025

Copy link
Copy Markdown

Deploying rivet-studio with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4527a1a
Status: ✅  Deploy successful!
Preview URL: https://35dede06.rivet-studio.pages.dev
Branch Preview URL: https://05-31-fix-pegboard-fix-colle.rivet-studio.pages.dev

View logs

@MasterPtato MasterPtato marked this pull request as ready for review June 3, 2025 01:55

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Improves error handling in pegboard_actor_get to handle actors without workflows, preventing complete function failure when collecting metrics. The function now gracefully handles WorkflowNotFound errors by skipping those actors and continuing with the remaining ones.

  • Modified error handling around sqlite_for_workflow to return None instead of failing when workflow is not found
  • Added specific error pattern matching for WorkflowError::WorkflowNotFound
  • Ensures metrics collection continues for valid actors even when some workflows are missing
  • Improves system resilience by handling completed/missing workflow scenarios

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@graphite-app

graphite-app Bot commented Jun 3, 2025

Copy link
Copy Markdown
Contributor

Merge activity

  • Jun 3, 7:01 AM UTC: NathanFlurry added this pull request to the Graphite merge queue.
  • Jun 3, 7:02 AM UTC: CI is running for this pull request on a draft pull request (#2528) due to your merge queue CI optimization settings.
  • Jun 3, 7:03 AM UTC: Merged by the Graphite merge queue via draft PR: #2528.

graphite-app Bot pushed a commit that referenced this pull request Jun 3, 2025
…2519)

<!-- 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 Jun 3, 2025
@graphite-app graphite-app Bot deleted the 05-31-fix_pegboard_fix_collecting_metrics_for_actors_without_workflows branch June 3, 2025 07:03
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.

1 participant