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