Is there a way to assign a task result handler fro...
# ask-community
a
Is there a way to assign a task result handler from an imported task? Like the equivalent of this:
Copy code
from prefect import task
from prefect.engine.result.local_result import LocalResult
from my_prefect_tasks import imported_task

@task(result=LocalResult())
def assigned_result_task(x):
    return x

imported_task.result_handler = LocalResult()
k
Hey, I think it would be
task.result=xxx
, but let me double check. Did that not work?
Just tested and it seems to work.
a
Yeah that seems to work. Thanks 🙏