In a prefect job run, could I get my job run url p...
# ask-community
s
In a prefect job run, could I get my job run url programmatially? We wish to send a report containing this job run url, so that people would be able to go to the original job run log.
1
n
hey @schwannden kuo - something like this? you can get the
flow_run
from
get_run_context
if you're just in a flow run context and not a state hook https://docs.prefect.io/latest/guides/state-change-hooks/#send-a-notification-when-a-flow-run-fails
s
yes
get_run_context
is exactly what I need, thank you!