In our Prefect 1 flows we use `prefect.context.get...
# ask-community
j
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
Yea, that's correct -
expected_start_time
is what you should be using
🙏 1