Zach
01/18/2023, 2:17 AMcustom_htp_asset = with_resources(
[
AssetsDefinition.from_graph(
htp_cross_platform_graph,
group_name="UAF_results",
)
],
resource_defs=resource_defs_prod,
)[0]
custom_htp_asset_job = define_asset_job(
name="custom_htp_asset_job",
selection=AssetSelection.groups("UAF_results"),
tags={"ecs/cpu": 1024, "ecs/memory": 4096},
)
I would like the asset produced from this graph to be named "UAF_results", but currently this is using the name of the graph "htp_cross_platorm_graph". the graph has a GraphOut
configured like so:
@graph(out=GraphOut("UAF_results"))
def htp_cross_platform_graph():
...
I have another graph-backed asset that seems to use the name of the GraphOut
to name the asset, but it doesn't seem to be working that way in this case...Vinnie
01/18/2023, 7:09 AMkeys_by_output_name={"result": "UAF_results"}
to from_graph
, that way you don’t even need to define the GraphOut
.Zach
01/18/2023, 4:26 PMchris
01/18/2023, 6:46 PMAssetsDefinition
doesn’t have a name, it has a set of asset keys associated with it. In the case of a graph backed asset, you define the asset keys associated with that asset based on which outputs that graph produces, hence the need for keys_by_output_name