Is it possible to get a flows start time during ru...
# ask-community
m
Is it possible to get a flows start time during runtime?
1
b
Hey Matthew! IIRC, you should be able to get this from the Runtime Context.
The
start_time
is one of those values
m
Hey Bianca, I've been looking at that. It works as expected if
get_run_context
context returns the
FlowRunContext
but if it returns the
TaskRunContext
then
start_time
refers to the start time of the task rather than the flow. The problem is I can't seem to find a way to access
FlowRunContext
inside of a task
Instantiating it myself gives a bunch of pydantic errors
Nevermind actually, must have had a typo or something, I can instantiate
FlowRunContext
myself
🔥 1
b
sweet!
all good for now then?
m
Yep, thank you!
🫡 1