https://prefect.io logo
Title
k

Kevin Weiler

07/08/2020, 3:25 PM
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

07/08/2020, 3:30 PM
@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

07/08/2020, 3:30 PM
it is a container yeah - lemme look into that
yep - that’s the deal - bad path
thanks!
c

Chris White

07/08/2020, 3:52 PM
@Marvin archive “object has no attribute ‘result_handler’ when running Flow”