Thread
#prefect-community
    k

    Kevin Weiler

    2 years ago
    hi again - any idea why I might be getting this error message on flow run?
    Unexpected error: AttributeError("'FunctionTask' object has no attribute 'result_handler'")
    Traceback (most recent call last):
      File "/opt/miniconda3/lib/python3.7/site-packages/prefect/engine/runner.py", line 48, in inner
        new_state = method(self, state, *args, **kwargs)
      File "/opt/miniconda3/lib/python3.7/site-packages/prefect/engine/flow_runner.py", line 447, in get_flow_run_state
        executor=executor,
      File "/opt/miniconda3/lib/python3.7/site-packages/prefect/engine/executors/local.py", line 24, in submit
        return fn(*args, **kwargs)
      File "/opt/miniconda3/lib/python3.7/site-packages/prefect/engine/flow_runner.py", line 569, in run_task
        default_handler = task.result_handler or self.flow.result_handler
    AttributeError: 'FunctionTask' object has no attribute 'result_handler'
    this doesn’t happen when running the flow locally
    j

    josh

    2 years ago
    @Kevin Weiler is this flow being executed in a container? This looks to be a prefect version mismatch between your local version where you build the flow and the container it is running in
    k

    Kevin Weiler

    2 years ago
    it is a container yeah - lemme look into that
    yep - that’s the deal - bad path
    thanks!
    Chris White

    Chris White

    2 years ago
    @Marvin archive “object has no attribute ‘result_handler’ when running Flow”
    Marvin

    Marvin

    2 years ago