Rikimaru Yamaguchi
12/06/2022, 12:16 PMAnna Geller
12/06/2022, 12:24 PMfrom prefect.settings import PREFECT_UI_URL
def get_ui_flowrun_url() -> str:
id_ = get_run_context().flow_run.dict().get('id')
ui_url = PREFECT_UI_URL.value() or "<http://ephemeral-orion/api>"
return f"{ui_url}/flow-runs/flow-run/{id_}"
Rikimaru Yamaguchi
12/07/2022, 12:51 AMfrom prefect.context import get_run_context
need this too.