I was wondering how can one access/modify Prefect ...
# ask-community
r
I was wondering how can one access/modify Prefect Context variables at Task/Flow run on Prefect 2.0 (similar to how it was done in Porter 1 -> https://docs.prefect.io/core/concepts/execution.html#prefect-supplied-context)
a
Check this Discourse page https://discourse.prefect.io/t/how-to-access-prefect-context-values/62 TL;DR:
Copy code
prefect.context.get_run_context()
r
Awesome, found that on the docs and now I see the usage. Thanks! 🙏
👍 1