Mohit Singhal
02/06/2025, 8:17 AMMarvin
02/06/2025, 8:17 AMui_url
parameter of a flow run within a Prefect 3.x flow, you can utilize the prefect.runtime.flow_run
module. Here's how you can retrieve the `ui_url`:
python
from prefect import flow
from prefect.runtime.flow_run import ui_url
@flow
def my_flow():
print(f"Flow run UI URL: {ui_url}")
my_flow()
This will print the UI URL for the flow run, allowing you to access it programmatically within your flow.
For further details, you can explore the Prefect documentation or the Prefect runtime module.