Repository navigation
Bound concurrent jobs in memory read producers - #811
Merged
Merged
Conversation
Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
The in-process server lifespan loads a timestamped keyring snapshot. Restore the original client snapshot at fixture teardown so later tests do not inherit a stale server view. Production freshness checks remain unchanged. Signed-off-by: zlareb1 <[email protected]>
Create awaitables for the current window and join owned children before an error escapes. Preserve namespace and result order, row parameters and private-first passes. Supplemental phrase scheduling retains its existing duplicate selection. Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Type each namespace and digest target at the factory boundary so the generic window preserves the store-call contract. Signed-off-by: zlareb1 <[email protected]>
Pass the search body exception through the owned async context rather than reading ambient exception state. A successful search awaited from an exception handler still propagates cancellation after joining its children. Signed-off-by: zlareb1 <[email protected]>
A handled exception in an awaiting caller must not suppress cancellation after a successful window. Keep the actual window failure explicitly while retaining shielded child cleanup. Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
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.
Related: #808
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
Main vector reads, entity boosts, summaries, observations, anchors, key matches and digest descent create at most four read jobs per producer window. Each producer preserves input order and joins its owned children before a failure or cancellation escapes.
Why
Namespace and entity lists can create a task for every input at once. The existing private-first helper can schedule an ordered window and serve the affected memory producers without changing their store arguments or result assembly.
Scope and risk
Changes local scheduling and cleanup in the shared ordered-input helper and the listed memory producers. Private-first visibility, identity parameters, SQL, row order and ranking code remain unchanged. Supplemental phrases retain their existing namespace scheduling and completion-based duplicate selection. This is a per-producer bound; request-wide admission and process-wide cost isolation remain separate work. No performance improvement is claimed.
Compatibility, rollout and rollback
Tests
AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (Codex): source and caller inspection, assertion and store-argument comparisons, focused regressions and scoped static checks.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist