James Zhang
12/22/2022, 10:14 AMJustin Trautmann
12/22/2022, 2:11 PMfrom prefect.context import get_run_context
get_run_context().flow_run.name
could helpJames Zhang
12/22/2022, 2:50 PMget_run_context()
just gives me a Task Context because I called it under a Task… can I get the Flow Run name inside of a Task?Justin Trautmann
12/22/2022, 3:33 PMFlowRunContext.get()
wit FlowRunContext imported from prefect.contextData in this context is only available from within a flow run function.
This sounds to me like this is only available directly inside the flow function. what about getting the name in the flow and passing it on to the tasks?James Zhang
12/22/2022, 3:40 PM