Hi, all! I’m trying to get graph-backed assets wor...
# ask-community
g
Hi, all! I’m trying to get graph-backed assets working. I’ve done defined an asset from an existing graph and that has been shown in Dagit. However, the argument
group_name
seems not to take effect in Dagit. The asset group for the asset is still in
default
instead of the name I specified. Am I missing something??
Copy code
from dagster import AssetsDefinition
from dagster_poc.jobs.graph import my_graph

my_asset = AssetsDefinition.from_graph(my_graph, group_name="my_group")
🤖 1
s
That's unexpected. We recently discovered a bug where
group_name
wouldn't work if the asset has a key prefix: https://github.com/dagster-io/dagster/pull/9138 Does your asset have a key prefix?
g
Yes, the asset was set to have key prefix. Sorry for being confusing. I missed
key_prefix
when I was posting the code.
group_name
works fine without specifying
key_prefix
.