https://prefect.io logo
#prefect-community
Title
# prefect-community
i

itay livni

10/21/2019, 6:47 PM
Hi - A couple of general questions: (1) What is the use case for an imperative flow vs. functional flow? (2) When is mixing the two appropriate?
c

Chris White

10/21/2019, 6:49 PM
The underlying Flow itself will be identical regardless of whether you build it with the imperative or functional APIs; the two APIs are purely a matter of personal preference. The functional API is best for tasks which exchange data, and the imperative API is best for avoiding creating task copies
i

itay livni

10/21/2019, 7:00 PM
something like this? Where the results of various
tasks
are fed to the to a
write_results
task
but bound with different inputs. e.g.
filename
c

Chris White

10/21/2019, 7:16 PM
you’ll need to set a
key
for input binding here
2 Views