Hi, I am struggling to use backfill on an asset th...
# ask-community
i
Hi, I am struggling to use backfill on an asset that returns an output value. Whatever I am trying to do I get
Copy code
dagster._core.errors.DagsterExecutionHandleOutputError: Error occurred while handling output "result" of step "test_output.construct_arguments":
The above exception was caused by the following exception:
AssertionError
Can anyone share an example code on how such case should look like? What should be the return value type?
y
mind sharing some code snippet for the asset definition?
i
yes, that is a snippet of test code which also gives the same error:
Copy code
@asset(
    freshness_policy=FreshnessPolicy(maximum_lag_minutes=60),
    partitions_def=HourlyPartitionsDefinition(datetime(2023, 8, 1)),
    auto_materialize_policy=AutoMaterializePolicy.eager(max_materializations_per_minute=10),
)
def test_result(context) -> str:
    <http://context.log.info|context.log.info>(context.asset_partition_key_range_for_output().start)
    return context.asset_partition_key_range_for_output().start
p.s. i am currently on 1.4.3 version
I was searching for anything similar in GH and found this MR which seems to be like a fix for that issue: https://github.com/dagster-io/dagster/pull/14621/files#diff-769da442e9a2e89f16a2942da633f014bab8aaeb01bb65ae53cba4f6c553baddL438-R445