Repository navigation
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.
Cache v4 on the scheduling dispatcher prototype #30
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
base: 11-06-cache-v4
Are you sure you want to change the base?
Cache v4 on the scheduling dispatcher prototype #30
Changes from 1 commit
a1ae31559c311a111f81210bf4e34817ed893d661b2ea8e6d8920df217fccb61ce47be9890e3eFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
…e Store signal rule - Store reads pass `{ signal, expedite }` to `submit` / `submitMany`. The separate `read.expedite()` calls and the cache's `cancelWaitingOnAbort` helper are gone. A read with `autoBatch: false` never accumulates, so it no longer calls `batchScheduleFn`. - Producer work: a request of a call with `autoBatch.producer: false` starts its work expedited, through `Sharing`'s `start`. The scheduler still calls `item.expedite()` for waiting work that such a request joins. Both now live in `producerScheduler.ts`, driven by `request.call.expedite`; the client only sets the flag. No signal goes to `submit` there: `Sharing` owns the cancellation of shared work. - The Store signal rule no longer looks at `autoBatched`. A Store call gets a signal exactly when every read in it carries that same signal; reads without a signal count as different from reads with one. So an automatic batch whose reads all share one signal now gets it, and an abort can cancel that Store call for those callers only. - With `preserveAsyncContext`, a Store call that `close()` starts now runs in the context of the read that opened the accumulation. The capped path (a known set on a `get`-only Store without `maxConcurrentStoreReads`) does not pass the signal to `submit`. Its reads never wait in the dispatcher, and each is its own Store call, which gets the signal by the rule above and fails before it reaches the Store. A mutation check showed that passing the signal there changes nothing that a test can observe. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.