https://prefect.io logo
m

mondras

08/09/2023, 5:13 PM
@Marvin in prefect < 2, we had
get_flow_run_info
from the client; what is this in prefect 2.0?
m

Marvin

08/09/2023, 5:13 PM
In Prefect 2.0, the
get_flow_run_info
function is not directly available. However, you can create a flow run by calling any function that you've decorated with a
@flow
decorator. This will give you a local instance of a flow run. For example:
Copy code
my_flow.py
This will create a flow run and you can view it at the provided Prefect Cloud link. Also, there is a new CLI command to delete flow runs:
prefect flow-run delete
. Please note that the UI in Prefect 2.0 has been completely redesigned for simplicity, speed, and ease of use. For more specific information, you might want to check the Prefect 2.0 documentation or the source code.
In Prefect 2.0, the
get_flow_run_info
method from the client has been replaced with a more streamlined approach. Now, you can simply call any function that you've decorated with a
@flow
decorator to see a local instance of a flow run. For example, you can run
python my_flow.py
to initiate a flow run and view its details. Additionally, there's a new CLI command
prefect flow-run delete
for deleting flow runs. The UI has also been completely redesigned to be simpler, faster, and easier to use. However, I couldn't find a direct replacement for
get_flow_run_info
. It seems that the functionality might have been incorporated into other parts of the system. I recommend checking the official Prefect documentation or reaching out to the Prefect community for more specific information. You can view the full documents here, here, and here.