Skip to content

Moved some fields from the GlobalCtx to a new class, _UpdateCtx #44

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mstniy
Copy link
Owner

@mstniy mstniy commented Mar 30, 2025

Lets us swiftly remove all dag run-related state once it is done
Ban .listen even for async computations
onDependencyUpdated no longer throws exceptions NoValueException
Instead returns an empty downstream
.listen no longer calls eval() directly
It used to bypass onDependencyChanged, breaking the delayed eval pattern
Routers: Delay the delivery of data if a dag run is already going on StreamExtension: Delay the onListen event by one microtask to make sure we don't call .listen within a computation in case we are being used by a computation

  Lets us swiftly remove all dag run-related state once it is done
Ban .listen even for async computations
onDependencyUpdated no longer throws exceptions NoValueException
  Instead returns an empty downstream
.listen no longer calls eval() directly
  It used to bypass onDependencyChanged, breaking the delayed eval pattern
Routers: Delay the delivery of data if a dag run is already going on
StreamExtension: Delay the onListen event by one microtask to make sure we don't call .listen within a computation in case we are being used by a computation
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 94.87179% with 4 lines in your changes missing coverage. Please review.

Project coverage is 99.39%. Comparing base (a4a50ed) to head (abeea9a).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #44      +/-   ##
==========================================
- Coverage   99.60%   99.39%   -0.22%     
==========================================
  Files          42       42              
  Lines        1794     1811      +17     
  Branches      971      976       +5     
==========================================
+ Hits         1787     1800      +13     
- Misses          7       11       +4     
Components Coverage Δ
computed 98.11% <94.87%> (-0.66%) ⬇️
computed_collections 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants