Repository navigation
🤖 perf: bind xum server listener before startup recovery; stop per-task config.json reloads #4058
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
Merged
Merged
🤖 perf: bind xum server listener before startup recovery; stop per-task config.json reloads #4058
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
5f89fb0
perf(server): bind listener before startup recovery and stop per-task…
ibetitsmike 314818f
fix(server): harden background startup recovery against early clients
ibetitsmike 6aa18ab
fix(server): make startup recovery respect concurrent client state ch…
ibetitsmike 12549db
fix(server): close remaining post-listen recovery races with task_sto…
ibetitsmike f095888
fix(analytics): wait for the worker to close DuckDB before process exit
ibetitsmike 02cfc0a
fix: wait for the analytics worker's real exit; keep a concurrently i…
ibetitsmike b460a3e
fix(server): make post-listen recovery safe against workflow resumes …
ibetitsmike 3439514
fix(server): key the resume guard by run and confirm cleanup eligibil…
ibetitsmike b14171c
fix(server): decide reported-task cleanup under the lifecycle lock; k…
ibetitsmike 2df37ac
fix(server): cancel startup recovery on dispose; recheck descendants …
ibetitsmike 63036b7
fix(server): recovery cancellation returns early; recovery sends yiel…
ibetitsmike 7489062
fix(server): confirm reported-task cleanup inside remove()'s lock hol…
ibetitsmike 68075f8
Merge origin/main into mike/server-bind-before-recovery
ibetitsmike dae08c6
refactor(server): run task recovery before the listener binds; keep o…
ibetitsmike 98ea055
Finalize pending best-of parent partials before the listener opens
ibetitsmike f8be932
Close the remaining post-listen housekeeping races
ibetitsmike be815d6
Make best-of partial finalization a compare-and-set
ibetitsmike cd178f5
Stop startup chat recovery on shutdown; follow the live parent in cle…
ibetitsmike c81a8dc
Serialize commitPartial with the partial compare-and-set
ibetitsmike 1cb415c
Keep beginShutdown ahead of the recovery-session sweep
ibetitsmike fdce45f
Make commitPartial one cross-process transaction
ibetitsmike 2169beb
Re-check archived state before startup recovery dispatches
ibetitsmike 3a74713
Stop internal dispatch on archive during backoff and on shutdown
ibetitsmike 5cebf00
Latch sessions against dispatch before the housekeeping join
ibetitsmike 08ca3a8
Merge remote-tracking branch 'origin/main' into mike/server-bind-befo…
ibetitsmike 1d4d77e
Honor the shutdown latch at every pre-stream checkpoint
ibetitsmike 433e2bd
Defer best-of finalization while a sibling executes again
ibetitsmike b795316
Close the remaining dispatch windows around removal, shutdown, and be…
ibetitsmike File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| /** | ||
| * Startup passes that take longer than this are logged at warn level so slow deployments | ||
| * (thousands of workspaces, large session dirs) surface in logs without enabling debug output. | ||
| * Chosen well above a healthy cold start (seconds) but below the point where a health check | ||
| * would already have flagged the process. | ||
| */ | ||
| export const SLOW_STARTUP_WARN_THRESHOLD_MS = 30_000; |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.