I'm trying to run a job that uses `<http://asset.t...
# dagster-plus
n
I'm trying to run a job that uses
<http://asset.to|asset.to>__source__asset()
to feed assets directly into the job. Following this pattern, which I think was only recently made possible: https://docs.dagster.io/concepts/ops-jobs-graphs/graphs#loading-an-asset-as-an-input. But I think if fails because of Serverless dagster's ephemeral storage. The Job fails if the asset isn't there. So can I force the job to materialize the asset if its not materialized yet? Or does this pattern of feeding assets into jobs not work in serverless dagster because of that ephemeral storage? (I guess more generally, am I using things the wrong way by having an asset just fetch some data and return it? Will this only work if I have set up external services for permanent storage (like azure data lake 2)?
s
Hi @NateV - for this to work, you need to assign the asset an IO manager that knows how to load it's contents from where it's stored
n
that's what I was guessing, thanks! It feels odd that if I have a function
f
that returns some value
a
, I can't actually call that function to get
a
. Really,
f
is persisting
a
somewhere, and any later calls to
f
are actually going to fetch
a
from wherever
f
put it. I suppose this is the nature of data-pipeline type systems to work this way (to which I'm clearly new)?