02/09/2023, 1:11 PM
Hello hello, i am running into this error in Prefect 1 when using
from a dependent flow. The child flow runs and is successful, but the parent flow seems to be unaware of that? we are using local storage to persist task results. this error only happens sometimes.
Task 'get_task_run_result': Exception encountered during task execution!
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/prefect/engine/", line 880, in get_task_run_state
    value = prefect.utilities.executors.run_task_with_timeout(
  File "/usr/local/lib/python3.9/site-packages/prefect/utilities/", line 468, in run_task_with_timeout
    return*args, **kwargs)  # type: ignore
  File "/usr/local/lib/python3.9/site-packages/prefect/tasks/prefect/", line 239, in get_task_run_result
    return task_run.get_result()
  File "/usr/local/lib/python3.9/site-packages/prefect/backend/", line 73, in get_result
    raise ValueError("The task result cannot be loaded if it is not finished.")
ValueError: The task result cannot be loaded if it is not finished.

Task 'get_task_run_result': Finished task run for task with final state: 'Failed'