Changed behaviour in the way persist_result
works
#16521
-
In Prefect v2.19.9, for a flowrun/taskrun whenever the option
v3.0.11
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
hey @SantanM -- this is expected behavior. In Prefect 2, the In Prefect 3, we can still use the (1) continue to use the |
Beta Was this translation helpful? Give feedback.
hey @SantanM -- this is expected behavior. In Prefect 2, the
persist_results
kwarg used to store the run result into configured storage, and create a reference to that storage location via an Artifact entryIn Prefect 3, we can still use the
persist_results
kwarg to do the same thing, but a resulting Artifact entry is no longer created (as it used to just hold a reference to the location, which is already information stored on the state object). Depending on your goals, you can either:(1) continue to use the
persist_results
kwarg and configure the storage based on your needs, or(2) use one of the explicit
create_<type>_artifact()
methods to store any result data as an Artifact