-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Make AssetStatusCacheValue inherit InstanceLoadableBy #25200
Make AssetStatusCacheValue inherit InstanceLoadableBy #25200
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In terms of testing, one thing I'd like to see is what happens to test_perf.py
if you add in that snippet of code to report materializations for everything requested in the first tick.
I actually expect to see a decrease in perf, at least for this PR, as these calls no longer have access to the cached AssetRecords.
We can make that perf back once we make this async (or consider threading through a loading context), just want to avoid merging this in a vacuum if it makes a big difference (it might not).
python_modules/dagster/dagster/_core/storage/partition_status_cache.py
Outdated
Show resolved
Hide resolved
python_modules/dagster/dagster/_core/asset_graph_view/asset_graph_view.py
Outdated
Show resolved
Hide resolved
4d3c2cc
to
2c11e72
Compare
720ded4
to
34a2997
Compare
2c11e72
to
99479fd
Compare
73818b7
to
d56c073
Compare
99479fd
to
2257294
Compare
d56c073
to
def9fe2
Compare
2257294
to
ea6002b
Compare
def9fe2
to
4a164ec
Compare
ea6002b
to
41e4571
Compare
4a164ec
to
7fc9c05
Compare
41e4571
to
e5dcce0
Compare
7fc9c05
to
0f48def
Compare
e5dcce0
to
f57fd3a
Compare
0f48def
to
2757128
Compare
f57fd3a
to
f3263a7
Compare
2757128
to
41914e8
Compare
f3263a7
to
31ab1fd
Compare
81cf176
to
30253d1
Compare
31ab1fd
to
5790650
Compare
30253d1
to
8bdb5e8
Compare
5ae90f1
to
62c38f6
Compare
8bdb5e8
to
0d4e8b4
Compare
62c38f6
to
2648efa
Compare
0d4e8b4
to
c957043
Compare
2648efa
to
d696688
Compare
c957043
to
346ee2b
Compare
d696688
to
8360c8c
Compare
346ee2b
to
b115f84
Compare
8360c8c
to
98cf324
Compare
b115f84
to
7e354ee
Compare
98cf324
to
7b08a91
Compare
7b08a91
to
253a599
Compare
## Summary & Motivation We want to make `AssetStatusCacheValue` follow the dataloader pattern as this will help optimize DA evaluation. This PR just uses `AssetStatusCacheValue.blocking_get()`, but will switch to using `AssetStatusCacheValue.gen()` when making things async in a follow up PR. ## How I Tested These Changes Existing tests should pass
Summary & Motivation
We want to make
AssetStatusCacheValue
follow the dataloader pattern as this will help optimize DA evaluation. This PR just usesAssetStatusCacheValue.blocking_get()
, but will switch to usingAssetStatusCacheValue.gen()
when making things async in a follow up PR.How I Tested These Changes
Existing tests should pass