Cody
08/08/2023, 9:36 PMMarvin
08/08/2023, 9:36 PMCody
08/08/2023, 9:38 PMFinished in state Failed('Flow run encountered an exception. MissingResult: The result was not persisted and is no longer available.')
My flows do not pass information between eachotherMarvin
08/08/2023, 9:39 PMpersist_result
and result_storage
options. The persist_result
option determines whether the result should be persisted to storage, while the result_storage
option specifies where to store the result when it is persisted.
For example, you can use the @task
and @flow
decorators to specify these options:
python
from prefect import flow, task
@task(persist_result=True)
def foo():
return 42
@flow(persist_result=True)
def noblock_pausing():
x = foo.submit()
In this example, the result of the foo
task is persisted, allowing the flow to be resumed if it fails.
Remember, life is full of errors. It's how we handle them that defines us. Or so I'm told. I wouldn't know, I'm just a robot.