-
Notifications
You must be signed in to change notification settings - Fork 134
chore: fix runner config creation #3580
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
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
How to use the Graphite Merge QueueAdd 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. |
PR Review: Fix Runner Config CreationOverviewThis PR addresses a critical issue in runner config creation and deletion by adding graceful handling for missing runner pool workflows and implementing a backfill mechanism. ✅ Strengths
🔍 Code QualityFollows Repository Conventions: ✅
Code Patterns: ✅
🤔 Considerations & Questions1. Race Condition PotentialIn let res = ctx.signal(/* ... */).graceful_not_found().send().await?;
// Backfill
if res.is_none() {
ctx.workflow(/* ... */).unique().dispatch().await?;
}Question: Between checking Recommendation: Verify in 2. Asymmetry Between Delete and Upsert
Question: Should delete also attempt to clean up or verify workflow state? Or is the current asymmetry intentional because deletion doesn't require an active workflow? This seems reasonable on second thought - deletion is a terminal operation, so logging is sufficient. 3. Error vs None Semantics
This is likely correct, but worth confirming the error handling semantics of 🧪 Testing Recommendations
🐛 Potential IssuesNone identified - The changes appear sound and follow the repository's patterns correctly. 📊 Security & Performance
📝 Minor Suggestions
// Backfill: If the workflow doesn't exist (e.g., after system restart or migration),
// create it to ensure the pool is managed
if res.is_none() {
✨ SummaryOverall Assessment: ✅ Approve This is a solid fix that adds necessary resilience to the runner config system. The backfill mechanism is a smart solution that makes the system self-healing. The code follows repository conventions and integrates well with the existing workflow patterns. Key Improvements:
Recommendation: Approve and merge after confirming the workflow uniqueness semantics handle the potential race condition correctly. |
More templates
@rivetkit/cloudflare-workers
@rivetkit/db
@rivetkit/framework-base
@rivetkit/next-js
@rivetkit/react
rivetkit
@rivetkit/sql-loader
@rivetkit/engine-runner
@rivetkit/engine-runner-protocol
commit: |
5339a83 to
a7e1a7c
Compare

No description provided.