How can I provide a description to an asset create...
# ask-community
a
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
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
Agree, a keyword argument is the cleanest. Thanks for pointing me to this.