Skip to content

Conversation

@MasterPtato
Copy link
Contributor

Changes

Copy link
Contributor Author

MasterPtato commented Jun 4, 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

Modifies actor lifecycle management to wait for allocation instead of creation, improving reliability and state tracking.

  • Changed actors.rs to wait for Allocated signal instead of CreateComplete before proceeding
  • Added new Allocated message type in mod.rs with client_id for better lifecycle tracking
  • Implemented allocation check before entering main state loop in actor workflow
  • Ensures proper actor resource allocation before continuing with other operations

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

Comment on lines 149 to 154
ctx.msg(Allocated {
client_id: res.client_id,
})
.tag("actor_id", input.actor_id)
.send()
.await?;
Copy link

Choose a reason for hiding this comment

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

logic: Sending Allocated message before state loop could lead to false positives if actor fails to initialize in state loop

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 4, 2025

Deploying rivet-studio with  Cloudflare Pages  Cloudflare Pages

Latest commit: d6aaade
Status: ✅  Deploy successful!
Preview URL: https://48cf04dc.rivet-studio.pages.dev
Branch Preview URL: https://06-04-fix-pegboard-wait-for.rivet-studio.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 4, 2025

Deploying rivet-hub with  Cloudflare Pages  Cloudflare Pages

Latest commit: d6aaade
Status: ✅  Deploy successful!
Preview URL: https://fc47a2d3.rivet-hub-7jb.pages.dev
Branch Preview URL: https://06-04-fix-pegboard-wait-for.rivet-hub-7jb.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 4, 2025

Deploying rivet with  Cloudflare Pages  Cloudflare Pages

Latest commit: d6aaade
Status: ✅  Deploy successful!
Preview URL: https://18db9cc4.rivet.pages.dev
Branch Preview URL: https://06-04-fix-pegboard-wait-for.rivet.pages.dev

View logs

@MasterPtato MasterPtato force-pushed the 06-04-fix_pegboard_increase_signal_timeout_add_check_for_actor_exit branch from 4f69969 to a38c8f3 Compare June 4, 2025 19:17
@MasterPtato MasterPtato force-pushed the 06-04-fix_pegboard_wait_for_actor_allocation_not_creation branch from c0249ae to 60de115 Compare June 4, 2025 19:17
@NathanFlurry NathanFlurry force-pushed the 06-04-fix_pegboard_wait_for_actor_allocation_not_creation branch from 60de115 to 779cf53 Compare June 5, 2025 00:58
@NathanFlurry NathanFlurry force-pushed the 06-04-fix_pegboard_increase_signal_timeout_add_check_for_actor_exit branch from a38c8f3 to 100bf59 Compare June 5, 2025 00:58
@MasterPtato MasterPtato force-pushed the 06-04-fix_pegboard_increase_signal_timeout_add_check_for_actor_exit branch from 100bf59 to 5517494 Compare June 5, 2025 02:10
@MasterPtato MasterPtato force-pushed the 06-04-fix_pegboard_wait_for_actor_allocation_not_creation branch from 779cf53 to 5526790 Compare June 5, 2025 02:10
@MasterPtato MasterPtato force-pushed the 06-04-fix_pegboard_wait_for_actor_allocation_not_creation branch from 5526790 to 6d98c23 Compare June 6, 2025 01:36
@graphite-app
Copy link
Contributor

graphite-app bot commented Jun 9, 2025

Merge activity

  • Jun 9, 4:46 PM UTC: MasterPtato added this pull request to the Graphite merge queue.
  • Jun 9, 4:48 PM UTC: CI is running for this pull request on a draft pull request (#2574) due to your merge queue CI optimization settings.
  • Jun 9, 4:49 PM UTC: Merged by the Graphite merge queue via draft PR: #2574.

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. -->
@graphite-app graphite-app bot closed this Jun 9, 2025
@graphite-app graphite-app bot deleted the 06-04-fix_pegboard_wait_for_actor_allocation_not_creation branch June 9, 2025 16:49
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