-
Notifications
You must be signed in to change notification settings - Fork 133
fix(gas): fix batch listen, fix history for graceful signal send in workflows #3479
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: 11-17-feat_gas_add_batch_listen
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
|
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.
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 batch listen, fix history for graceful signal send in workflowsSummaryThis PR introduces two main improvements to the gasoline workflow engine:
Code Quality & Best PracticesStrengths:
Suggestions:
Potential Bugs & IssuesCritical:
Minor:
Performance ConsiderationsImprovements:
Concerns:
Security ConcernsNo security issues identified. The changes:
Test CoverageMissing test scenarios:
Recommended test additions: // Test graceful signal send with replay
#[test]
async fn test_graceful_signal_not_found_replay() {
// First run: target doesn't exist, should create removed event
// Second run: should replay removed event correctly
}
// Test batch signal ordering
#[test]
async fn test_batch_signal_timestamp_ordering() {
// Create signals with out-of-order timestamps
// Verify they're received in timestamp order
}Additional Notes
VerdictLGTM with minor suggestions This is a solid improvement to the workflow engine. The graceful signal sending feature is well-implemented with proper history tracking for replay consistency. The batch listen fixes address real bugs in signal ordering and indexed chunk handling. The loop optimization should provide measurable performance improvements. The code follows project conventions, has good documentation, and maintains backward compatibility. Recommended to merge after addressing the test coverage gaps. Recommendation: Approve with suggestion to add tests before merge. |
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: |

No description provided.