Jeanine
08/08/2023, 3:57 PM@asset(output_required=False)
def my_asset(...):
...
yield Output({"key": "value"}, output_name="asset_name")
@multi_asset(
ins={"asset_name": AssetIn("my_asset")},
outs={"multi_1": AssetOut(), "multi_2": AssetOut(), "multi_3": AssetOut()},
)
def my_multi_asset(context: OpExecutionContext, asset_name: dict):
...
Whenever I specify the output_name
for the first asset's optional output, I get the following error:
dagster._core.errors.DagsterInvariantViolationError: Core compute for op "my_asset" returned an output "asset_name" that does not exist. The available outputs are ['result']
When I remove the output_name
, it all works perfectly.
It seems to me that the output_name
is not taken into account when provided for optional outputs. Has anybody encountered this error before? Am I interpreting it correctly?
Thank you 🙂Denis Arkhipov
08/25/2023, 2:48 PMJeanine
08/25/2023, 3:22 PMoutput_name
.
If you're having the same issue, then I could maybe open an issue on GitHub to report the bug!Denis Arkhipov
08/28/2023, 5:21 AMoutput_name
before, but last week I just tried to pick up some metadata based on output_name
and so encountered with this issue. Glad you answered!Jeanine
08/28/2023, 10:10 AMDenis Arkhipov
08/29/2023, 11:43 AM