-
Notifications
You must be signed in to change notification settings - Fork 72
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
feat: make actors reschedule indefinitely with backoff #1475
feat: make actors reschedule indefinitely with backoff #1475
Conversation
Deploying rivet with Cloudflare Pages
|
Your org requires the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question on slack regarding retry if actor fails to start vs just retrying on failed alloc
edit: handle retries for all reschedule events except for draining
edb783b
to
a11a624
Compare
@NathanFlurry updated to reset retry count only after ready |
a11a624
to
982c1e7
Compare
} | ||
}; | ||
// Sleep for backoff | ||
ctx.sleep_until(next).await?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Afaik this still doesn't handle actors that crash immediately, those should have a backoff for restarting too. Shouldn't the backoff be executed at the start of reschedule_actor? Like if !first_reschedule { /* do backoff */ }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actors always retry immediately the first time, then backoff kicks in: https://rivet-gg.slack.com/archives/D02R3KVNKHN/p1732672128678809?thread_ts=1732671085.517149&cid=D02R3KVNKHN
a25cdcb
to
67ce43f
Compare
67ce43f
to
2084acf
Compare
Merge activity
|
<!-- Please make sure there is an issue that this PR is correlated to. --> Fixes RVT-4196 Fixes RVT-4179 **Implemented but untested** ## Changes <!-- If there are frontend changes, please include screenshots. -->
Fixes RVT-4196
Fixes RVT-4179
Implemented but untested
Changes