https://prefect.io logo
b

bardovv

03/25/2020, 10:21 AM
Copy code
prefect.context.get  What is this used for?
a

Alex Cano

03/25/2020, 2:01 PM
The context in Prefect holds information about the current task and flow execution, such as when it started. The context acts kind of like a dictionary, so
.get()
was probably called to retrieve information from it.
k

Kyle Moon-Wright

03/26/2020, 6:03 PM
Here’s an example using prefect.context.get() for logging: https://docs.prefect.io/core/advanced_tutorials/custom-logs.html#adding-your-own-logs