Vinnie
02/14/2023, 9:29 AMbuild_output_context
function incorrectly has the arguments step_key
and name
labeled as optional. The output context can be created, but when something internally tries to access those properties and finds a None
value, it errors:
https://github.com/dagster-io/dagster/blob/master/python_modules/dagster/dagster/_core/execution/context/output.py#L796
https://github.com/dagster-io/dagster/blob/master/python_modules/dagster/dagster/_core/execution/context/output.py#L188owen
02/14/2023, 9:29 PMstep_key
? if so, do you happen to have a stack trace handy?Vinnie
02/14/2023, 9:41 PMdef my_test():
...
out_context = build_output_context(asset_key=out.dest_asset)
in_context = build_input_context(
upstream_output=out_context,
asset_key=AssetKey(out.dest_asset),
dagster_type=DagsterType(
type_check_fn=lambda _, x: True,
name="mock_io_dagster_type_test",
),
)
[i for i in manager.handle_output(out_context, out)]
assert manager.load_input(in_context).dest_asset == out.dest_asset
owen
02/14/2023, 9:44 PMVinnie
02/15/2023, 7:31 AMasset_key
parameter now. I probably had something else misconfigured.
Though this made me realize that build_output_context
accepts a str
as the asset_key
, while build_input_context
only accepts an AssetKey
instance.owen
02/15/2023, 6:17 PM