Hi. In Prefect V1 we used the following variable -...
# ask-community
v
Hi. In Prefect V1 we used the following variable -
prefect.context.scheduled_start_time
. Is it any alternative in Prefect 2? Thanks.
1
a
There is! You can grab that from the context as well, IIRC the syntax is: from prefect import get_run_context
v
This one, correct?
a
Afk, but yes I think so, you may log the context from a scheduled run though, a flow run from deployment should have more information in the context
v
Thanks!