https://prefect.io logo
Title
j

Joseph Thickpenny Ryan

03/14/2023, 1:47 PM
In our Prefect 1 flows we use
prefect.context.get("scheduled_start_time")
and I'm looking to replicate that in Prefect 2, does anyone know if this is the same as
prefect.context.get_run_context().flow_run.dict()["expected_start_time"]
? The data you get back from the context in Prefect 2 has a
next_scheduled_start_time
but the
scheduled_start_time
from Prefect 1 that the variable name suggests still exists seems to be missing so I'm hoping it's just been replaced by
expected_start_time
1
c

Chris White

03/14/2023, 2:08 PM
Yea, that's correct -
expected_start_time
is what you should be using
:thank-you: 1