Concurrent Eval with context.Context bound functions#1369
Open
TristonianJones wants to merge 5 commits into
Open
Concurrent Eval with context.Context bound functions#1369TristonianJones wants to merge 5 commits into
TristonianJones wants to merge 5 commits into
Conversation
…nal tests for more edge cases
…o use ConcurrentEval
This was referenced Jul 18, 2026
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.
The
ConcurrentEvalfunction for CEL enables you to connect asynchronous extensionsthat respect context cancellation and deadlines.
Execution Frame as Context
The features is built upon the CEL-managed
ExecutionFramewhich serves the role of acustom
context.Contextobject for the duration of a singleConcurrentEvalexecution.The
ExecutionFramemust never be stored or used outside of CEL: it's purely internalAsync Blocking
Async extensions are expected to block with CEL managing channel creation / concurrency
limits which can be configured through top-level options. Over time, CEL will add more utilities
for customizing extension timeouts, retries, and caching, e.g. #1367
Async Pruning
This implementation uses CEL's unknown feature to prune async dispatches before they're
executed if they're not relevant to the result.
Fixes for Unknown Merging
All code paths now properly early return on error, but aggregate unknowns, allowing for better
constant folding and expression pruning in addition to better identification of the batches of
calls which are relevant to result computation.