Hui Zheng
10/02/2020, 4:43 PMprefect context
. It seems a powerful way to share common variables and objects among tasks. Is it possible to add new objects or variables inside the flow definition which then to be used by the tasks later?
https://docs.prefect.io/core/concepts/execution.html#modifying-context-at-runtime
such as
with Flow('Flow with new context') as flow:
# Could we add new objects to prefect.context here?
task_1_use_new_context_object()
Dylan
Hui Zheng
10/05/2020, 11:04 PMDylan