Hi, how would I be able to get the metadata from a...
# ask-community
Hi, how would I be able to get the metadata from an upstream asset when I pass the upstream asset using AssetIn? This is how I have it laid out
def upstream_asset():
val = 5
return Output(value=val,
@asset(ins={"upstream_asset": AssetIn("upstream_asset")})
def test(upstream_asset):
# do something with upstream asset metadata
Hi! Here's a github discussion that might help you out. https://github.com/dagster-io/dagster/discussions/14338
Sorry, this is a bit of a silly question, but how do I set my $DAGSTER_HOME environment variable? Every time I set it in my PowerShell it resets upon opening a new PowerShell. Also, what file should the environment variable be set to? I currently have it setup so that it's like DagsterProject -> dagster_assets (where all assets are and where the temp files and data have been stored thusfar) -> dagster.yaml -> environment.yml -> launch_module Would it make sense to set the environment variable to the DagsterProject folder? Or should I set it to a new folder within the DagsterProject folder that stores the dagster.yaml file? Sorry again for this super beginner question! EDIT: I think I figured it out, I ended up making a new dagster_home file to keep the dagster.yaml in and that's where the environment variable is set to