https://prefect.io logo
Title
a

Austin Weisgrau

04/05/2023, 10:00 PM
Is there any way to get a link to the flow run log in the prefect cloud from within a flow run? I dont see anything like that in the FlowRunContext.
1
s

Sahil Rangwala

04/06/2023, 5:00 PM
There is a not a direct link, but the url link is composed of different values you can generate the link yourself:
<https://app.prefect.cloud/account/{account_id}/workspace/{workspace_id}/flow-runs/flow-run/{flowrun_id}>
would be your direct link to a specific flow run
a

Austin Weisgrau

04/11/2023, 5:30 PM
got it thanks!
@Sahil Rangwala The flow run id I found with
prefect.context.FlowRunContext.get().flow_run.flow_id
does not match the flowrun_id from the URL in the prefect cloud, am I fetching that from the wrong place?
Ah trying again with
FlowRunContext.get().flow_run.id
That works! Thanks!