NateV
04/06/2023, 1:36 AM@asset
# some assets ...
@op
def myop(dfs):
#do something with these input data frames
@graph
def mygraph():
myop([asset1(), asset2()])
mygraph.to_job()
I've discovered two problems that I think are probably symptoms of the same common problem that this pattern isn't doing what I think its doing. First, in the UI, the View As Asset Graph view is empty, and tells me that things will only appear there when I add Assets to my Definitions.
Second, I've realized that the 'assets' (or what I'm thinking of as assets) are getting stored not in the blob storage's directory, but in separate directories under a 'storage' directory.
So I think--although my assets are defined as Assets (and they work as assets, storing themselves correctly outside this graph/job)--they're no longer assets when they're pulled into this graph?
But I'm pretty confused about how to fix it. Any help would be very appreciated.NateV
04/06/2023, 1:58 AM/storage/something-like-a-uuid/asset/result
, under a different uuid for each run of the job.sandy
04/06/2023, 5:39 PMNateV
04/06/2023, 7:52 PMNateV
04/06/2023, 7:53 PMNateV
04/06/2023, 7:55 PMNateV
04/06/2023, 7:59 PMsandy
04/06/2023, 8:58 PMNateV
04/06/2023, 9:00 PMNateV
04/06/2023, 9:00 PMNateV
04/06/2023, 9:01 PMNateV
04/06/2023, 9:04 PMins
explicitly ins={"errs": AssetIn(asset_key[0])})(err)
, trying to use the OpFactory pattern from the docssandy
04/06/2023, 9:08 PMi just wish that job showed me, in the ui, what assets it depends onGot it - that makes total sense. I agree with you. I filed an issue to track this: https://github.com/dagster-io/dagster/issues/13428.
NateV
04/06/2023, 9:09 PM