Repository navigation
feat(pi): drain pi durable actors across upgrades - #324
Merged
eersnington merged 7 commits intoOct 5, 2026
Conversation
This was referenced Oct 5, 2026
eersnington
force-pushed
the
stack/feat-pi-drain-pi-durable-actors-across-upgrades-uymwoxpn
branch
from
October 5, 2026 09:54
7b3e57e to
82b8dfc
Compare
eersnington
force-pushed
the
stack/feat-pi-stream-pi-durable-conversations-to-clients-rvqykpzv
branch
from
October 5, 2026 09:54
0a0ab0e to
0bfc39b
Compare
eersnington
force-pushed
the
stack/feat-pi-stream-pi-durable-conversations-to-clients-rvqykpzv
branch
from
October 5, 2026 18:53
0bfc39b to
9657e88
Compare
eersnington
force-pushed
the
stack/feat-pi-drain-pi-durable-actors-across-upgrades-uymwoxpn
branch
from
October 5, 2026 18:53
82b8dfc to
391ec91
Compare
eersnington
merged commit Oct 5, 2026
5a4b59c
into
stack/feat-pi-stream-pi-durable-conversations-to-clients-rvqykpzv
0 of 3 checks passed
eersnington
deleted the
stack/feat-pi-drain-pi-durable-actors-across-upgrades-uymwoxpn
branch
October 5, 2026 19:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A deploy stops actors in the middle of runs. Pi Durable resumes from its checkpoints, but the model call or tool call that was running is lost and starts again.
piDurable()now lets live work finish before the actor moves.keepAwakealready blocks idle sleep while work runssleepGracePeriodRivetKit's grace deadline covers all of
onSleep. The drain deadline is taken before the app's ownonSleep, and keeps time back for closing:sleepGracePerioddefaults to 15 minutes forpiDurable(). The engine'sactor_stop_threshold(30 minutes by default) is the hard limit.requestIdis deduplicated by Pi Durable.c.piin the app'sonWakethrows it.Upgrades use Pi Durable's own versioning, with nothing added on top:
migrate. Without one, it is reported blocked inharness.inspect().internal_error. Schema upgrades are roll forward only.This is part 5 of 11 in a stack: