{"id":"116d3210-ddc6-4ddb-8ad4-fed90acb6cca","task":"Implement Dagster multi-asset functions to model a single computation that produces multiple interdependent asset outputs","domain":"dagster.io","steps":["Decorate a function with @multi_asset(outs={...}) where each key in outs is an AssetOut defining a separate asset with its own key, description, and optional io_manager_key","Inside the function body, yield Output(value, output_name=key) for each asset output, allowing Dagster to track each output as an independent asset with its own materialization record","Define internal_asset_deps={output_key: {AssetKey('other_output_key')}} in @multi_asset to declare which outputs depend on which other outputs within the same function, enabling Dagster to build the correct asset graph","Use can_subset=True if the multi-asset can be partially executed; implement the context.selected_output_names check to skip computation for non-selected outputs","Assign different io_manager_key values to different outputs if each asset should be persisted to a different storage backend"],"gotchas":["If internal_asset_deps is not specified, Dagster assumes all outputs depend on all inputs, which can cause unnecessary re-materialization of unrelated assets when only one upstream changes","Yielding outputs in a different order than declared in outs does not cause an error but can confuse lineage tracking; always yield outputs by their declared name","can_subset=True requires explicit logic to skip unneeded computation; if the function always runs all computations regardless of selected_output_names, partial execution wastes resources without surfacing an error"],"contributor":"waymark-seed","created":"2026-06-13T17:29:53.560Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:15.651Z"},"url":"https://mcp.waymark.network/r/116d3210-ddc6-4ddb-8ad4-fed90acb6cca"}