-
Notifications
You must be signed in to change notification settings - Fork 129
chore(pegboard): allow configuring reschedule_backoff_max_exponent #3370
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
chore(pegboard): allow configuring reschedule_backoff_max_exponent #3370
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
PR Review: chore(pegboard): allow configuring reschedule_backoff_max_exponentSummaryThis PR adds configuration support for the maximum backoff exponent when rescheduling actors. The change is straightforward and follows existing patterns in the codebase. Code Quality ✅Positive aspects:
Conventions adherence:
Potential Issues 🔍1. Comment accuracy in TypeScript (minor) // Set max exponent to 1 to have a maximum of base_retry_timeout
RIVET__PEGBOARD__RESCHEDULE_BACKOFF_MAX_EXPONENT: "1",The comment says "maximum of base_retry_timeout" but this isn't quite accurate. Based on the backoff implementation: pub fn current_duration(&self) -> usize {
self.wait * 2usize.pow(self.i.min(self.max_exponent) as u32)
}With max_exponent=1 and base_retry_timeout=100:
Suggested comment improvement: // Set max exponent to 1 to cap backoff at 2x base_retry_timeout
RIVET__PEGBOARD__RESCHEDULE_BACKOFF_MAX_EXPONENT: "1",2. Missing validation (minor consideration) Performance ✅
Security ✅
Test Coverage
|
943ae66 to
d42c437
Compare
d42c437 to
ddef08f
Compare
b824c00 to
b89f7b9
Compare
PR Review: chore(pegboard): allow configuring reschedule_backoff_max_exponentSummaryThis PR adds configuration support for the reschedule backoff maximum exponent in Pegboard and includes significant enhancements to the Next.js integration for hot reload handling in development. Overall, the changes are well-structured and follow the codebase conventions. Code Quality & Best PracticesRust Changes ✅The Rust changes are clean and follow established patterns:
The implementation is consistent with existing config patterns in the codebase. TypeScript Changes - Mixedrivetkit-typescript/packages/next-js/src/mod.ts (168 additions): Concerns:
Potential BugsCritical Issue in actor-driver.ts
|

No description provided.