https://dagster.io/ logo
#ask-community
Title
# ask-community
a

Andras Somi

01/06/2023, 9:46 AM
How can I provide a description to an asset created by
AssetDefinition.from_graph
? Given that the
@asset
decorator picks up docstring from the decorated function I expected the docstring of the graph to be “propagated” as the description of the created asset, but it doesn’t seem to be the case.
🤖 1
c

claire

01/06/2023, 6:07 PM
Hi Andras. Currently graph-backed assets use the description from the first op in the graph, but we do have an issue to fix this: https://github.com/dagster-io/dagster/issues/9476 I think the ideal expected behavior would be to accept an argument in the
from_graph
method.
a

Andras Somi

01/06/2023, 6:32 PM
Agree, a keyword argument is the cleanest. Thanks for pointing me to this.
10 Views