kevin
08/14/2020, 10:17 PMprefect.context
at runtime?
More concretely, can I do something like this:
with Flow('test') as flow:
do_stuff()
with prefect.context(foo='bar'):
flow.run()
and if not what would be the correct way to inject context after defining a flow?nicholas
08/14/2020, 10:21 PMkevin
08/14/2020, 10:23 PMwith Flow('test') as flow:
do_stuff()
def stuff_wrapper(foobar):
with prefect.context(foo=foobar):
flow.run()
and call stuff_wrapper
but I want to make sure.nicholas
08/14/2020, 10:24 PMkevin
08/14/2020, 10:24 PM