Join Slack
Powered by
I was wondering how can one access/modify Prefect ...
# ask-community
r
Ron Levi
05/03/2022, 10:18 AM
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
Anna Geller
05/03/2022, 10:53 AM
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
Ron Levi
05/03/2022, 10:55 AM
Awesome, found that on the docs and now I see the usage. Thanks! 🙏
👍 1
36
Views
Open in Slack
Previous
Next